Microsoft Chat Server SDK Reference

IChatChannelCallBack::OnAddMember

This method is called whenever a chat user joins the associated channel.

Syntax

C/C++:
HRESULT OnAddMember(
   IChatChannel *Channel,
   IChatUser *User,
   VARIANT_BOOL PostUpdate,
   long *Cancel);
Visual Basic:
Function IChatChannelCallBack_OnAddMember( _
   ByVal Channel As CHATSVCLib.IChatChannel, _
   ByVal User As CHATSVCLib.IChatUser, _
   ByVal PostUpdate As Boolean) As Long

Parameters

Channel
Reference to ChatChannel object to which the new member is added.
User
Reference to ChatUser object representing new channel user.
PostUpdate
False if this is a pre-update notification. True if new user has been added to the channel.
Cancel
Return value. Set to non-zero during the pre-update notification to cancel the operation.

Remarks

When this channel property changes, the OnChannelPropertyChanged method is not called. Extensions interested in the OnAddMember event must register for explicit notification.


© 1998 Microsoft Corporation. All rights reserved.