SmartFoxServer Unity/.NET 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#
Trace.WriteLine("I logged in as: " + smartFox.myUserName);
See Also

Assembly: SmartFoxClient (Module: SmartFoxClient) Version: 1.2.4.0 (1.2.4.0)