SendInvitation MethodSendInvitation Method*
*Contents  *Index  *Topic Contents
*Previous Topic: QueryUserProperty Method
*Next Topic: SendPrivateMessage Method

SendInvitation Method

Invites a user to a channel.

Syntax

object.SendInvitation Nickname[, ChannelName]

Parameters

objectRequired. An object expression that evaluates to an MsChatPr control.
NicknameRequired. A string expression containing the Nickname of an existing user on the server.
ChannelNameOptional. A variant that does not need to be an existing channel on the server. If the ChannelName parameter is not specified or is empty, there must be exactly one open channel in the collection, and the user is invited to that channel.

Remarks

The invited user will get an OnInvitation event as notification of the invitation.

Examples

'ChannelName is specified
MsChatPr1.SendInvitation "Momo", "#MyRoom"
'There is exactly one open channel in the collection
MsChatPr1.SendInvitation "Mila"

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