Microsoft Chat Server SDK Reference

DisconnectUser Method

This method disconnects a user (or users) from the chat service.

Syntax

ChatService.DisconnectUser(Mask, Reason)

Parameters

Mask
A string representing the name mask for users to disconnect from the server. See remarks.
Reason
The reason for disconnecting the users.

Remarks

The nickname mask can contain * and ? to indicate wildcard matching. It can also include the user's real identity following an exclamation point (!). The following table contains examples of valid user masks.

Mask Meaning
user?? Any user nickname containing "user" followed by two characters.
*!user@host Specific user identity without regard to nickname.
*!*@host Any users from the "host" domain.


© 1998 Microsoft Corporation. All rights reserved.