Click or drag to resize
IChatServiceSearchOnlineUsers Method
Search users who are online globally on a chat (they are performing Ping()) and meet condition (their nickname contains nickname.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.2.23
Syntax
C#
ChatGeneralResponse<IEnumerable<OnlineUserData>> SearchOnlineUsers(
	string nickname,
	int topN,
	Nullable<int> invitedToRoomID
)

Parameters

nickname
Type: SystemString
Searches for users with this nickname
topN
Type: SystemInt32
Returns this number of found users
invitedToRoomID
Type: SystemNullableInt32
If not null, only users who can be invited to this room will be returned

Return Value

Type: ChatGeneralResponseIEnumerableOnlineUserData
Online users
See Also