Microsoft Chat Server SDK Reference

IChatUserCallBack::OnAddChannel

This method is called whenever the user joins a channel.

Syntax

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

Parameters

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

Remarks

When this property changes, the OnUserPropertyChanged method is not called. Extensions that are interested in the OnAddChannel event should register for this notification explicitly.


© 1998 Microsoft Corporation. All rights reserved.