SmartFoxServer Silverlight API
GetUser Method (userId)
Namespaces ► SmartFoxClientAPI.Data ► Room ► GetUser(Object)
Retrieve a user currently in the room.
Declaration Syntax

C# | Visual Basic | Visual C++

    public User GetUser(
    	Object userId
    )

    Public Function GetUser ( _
    	userId As Object _
    ) As User

    public:
    User^ GetUser(
    	Object^ userId
    )

Parameters

userId (Object)
  the user name (string) or the id (int) of the user to retrieve

Return Value
A {User} object
Remarks
Version:
SmartFoxServer Basic / Pro
Examples
CopyC#

    User user = room.GetUser("jack");

See Also
GetUserList()()()
User

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