SmartFoxServer Unity/.NET API
GetUser Method (userId)
NamespacesSmartFoxClientAPI.DataRoomGetUser(Object)
Retrieve a user currently in the room.
Declaration Syntax
C#Visual BasicVisual 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

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