The current user's SmartFoxServer username.


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

The following example shows how to retrieve the user's own SmartFoxServer username.
CopyC#

Debug.WriteLine("I logged in as: " + smartFox.myUserName);