OnKnock EventOnKnock Event*
*Contents  *Index  *Topic Contents
*Previous Topic: OnInvitation Event
*Next Topic: OnMemberKicked Event

OnKnock Event

Fires when a user failed to enter a channel.

Syntax

object_OnKnock(Channel, KnockerItems, ErrorCode)

Parameters

objectRequired. An object expression that evaluates to an MsChatPr control.
ChannelRequired. An object expression that evaluates to a Channel object.
KnockerItemsRequired. An object expression that evaluates to a ChatItems object.
ErrorCodeRequired. A long integer value that indicates why the user could not join the channel. Examples are that the channel is full, the channel is invite-only, or a channel Keyword is set.

Remarks

Only the hosts of the channel receive this notification. Also, the notification occurs only if the cmKnock flag is set for that channel.


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