SmartFoxServer Unity/.NET API
myUserId Field
NamespacesSmartFoxClientAPISmartFoxClientmyUserId
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.
Declaration Syntax
C#Visual BasicVisual C++
public int myUserId
Public myUserId As Integer
public:
int myUserId
Remarks

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

Examples
The following example shows how to retrieve the user's own SmartFoxServer id.
CopyC#
Trace.WriteLine("My user ID is: " + smartFox.myUserId);
See Also

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