SmartFoxServer Silverlight API
SFSEvent..::.OnRandomKeyDelegate Delegate
Namespaces ► SmartFoxClientAPI ► SFSEvent ► SFSEvent..::.OnRandomKeyDelegate
Dispatched in response to a GetRandomKey()()() request.
Declaration Syntax

C# | Visual Basic | Visual C++

    public delegate void OnRandomKeyDelegate(
    	string key
    )

    Public Delegate Sub OnRandomKeyDelegate ( _
    	key As String _
    )

    public delegate void OnRandomKeyDelegate(
    	String^ key
    )

Parameters

key (String)
  a unique random key generated by the server.

Remarks

Version:
SmartFoxServer Pro

Examples
The following example shows how to handle the key received from the server.
CopyC#

    SFSEvent.onRandomKey += OnRandomKey;

    smartFox.GetRandomKey();

    public void OnRandomKey(string key)
    {
        Debug.WriteLine("Random key received from server: " + key);
    }

See Also
GetRandomKey()()()

Assembly: SmartFoxClientAPI_Silverlight (Module: SmartFoxClientAPI_Silverlight) Version: 1.0.0.0 (1.0.0.0)