SmartFoxServer Silverlight API
myUserName Field
NamespacesSmartFoxClientAPISmartFoxClientmyUserName
The current user's SmartFoxServer username.
Declaration Syntax
C#Visual BasicVisual C++
public string myUserName
Public myUserName As String
public:
String^ myUserName
Remarks

NOTE:
client-side, the myUserName property is available only after a successful login is performed using the default login procedure. If a custom login process is implemented, this property must be manually set after the successful login! If not, various client-side modules (SmartFoxBits, RedBox, etc.) may not work properly.

Version:
SmartFoxServer Basic / Pro

Examples
The following example shows how to retrieve the user's own SmartFoxServer username.
CopyC#
Debug.WriteLine("I logged in as: " + smartFox.myUserName);
See Also

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