LeaveChannel MethodLeaveChannel Method*
*Contents  *Index  *Topic Contents
*Previous Topic: KickMember Method
*Next Topic: ListMembers Method

LeaveChannel Method

Closes the current channel.

Syntax

object.LeaveChannel 

Parameters

objectRequired. An object expression that evaluates to a Channel object.

Remarks

The channel state must be chsOpen for the call to be successful.

Leaving a channel does not remove it from the Channels collection. The user can reuse the same Channel object to join and leave several channels sequentially.

A successful LeaveChannel call results in an OnChannelState event.

Example

MsChatPr1.Channels(iIndex).LeaveChannel

See Also

JoinChannel


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