SmartFoxServer Silverlight API
myUserId Field
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► myUserId
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 Basic | Visual 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#

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

See Also
myUserName

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