BanParticipant MethodBanParticipant Method*
*



Contents  *



Index  *Topic Contents
*Previous Topic: AboutBox Method
*Next Topic: CancelEntering Method

BanParticipant Method

Bans a member from or reinstates a member to a chat room.

Syntax

object.BanParticipant Name, Set

Parameters

objectRequired. An object expression that evaluates to a Chat control.
NameRequired. A BSTR value that contains the alias of the member to be banned or reinstated.
SetRequired. A Boolean value that determines whether the member is banned or reinstated. If the value is set to TRUE, the member is banned from the chat room and cannot rejoin it. If the value is set to FALSE, the member is reinstated and can join the chat at any time.

Remarks

This method only prevents the member from rejoining or allows the member to rejoin the chat room after leaving or being kicked. It does not kick the member from the chat room. BanParticipant cannot be called before the OnEndEnumeration event has been triggered.

See Also

KickParticipant


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.