The current user's SmartFoxServer id.
The id is assigned to a user on the server-side as soon as the client connects to SmartFoxServer successfully.
The id is assigned to a user on the server-side as soon as the client connects to SmartFoxServer successfully.


NOTE:
client-side, the myUserId 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 id.
CopyC#

Debug.WriteLine("My user ID is: " + smartFox.myUserId);
