SmartFoxServer Silverlight API
SFSEvent..::.OnRandomKeyDelegate Delegate
NamespacesSmartFoxClientAPISFSEventSFSEvent..::.OnRandomKeyDelegate
Dispatched in response to a GetRandomKey()()() request.
Declaration Syntax
C#Visual BasicVisual 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

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