Export (0) Print
Expand All

ChatRoomManagementServices.BeginUpdateChatRoom method (ChatRoomInformation, ICollection<PersistentChatPrincipalSummary>, ICollection<PersistentChatPrincipalSummary>, ICollection<PersistentChatPrincipalSummary>, AsyncCallback, Object)

Update chat room settings, member list, manager list and presenter list with one API call.

Namespace:  Microsoft.Rtc.Collaboration.PersistentChat.Management
Assembly:  Microsoft.Rtc.Collaboration.PersistentChat (in Microsoft.Rtc.Collaboration.PersistentChat.dll)

'Declaration
Public Function BeginUpdateChatRoom ( _
	roomInfo As ChatRoomInformation, _
	members As ICollection(Of PersistentChatPrincipalSummary), _
	managers As ICollection(Of PersistentChatPrincipalSummary), _
	presenters As ICollection(Of PersistentChatPrincipalSummary), _
	userCallBack As AsyncCallback, _
	state As Object _
) As IAsyncResult
'Usage
Dim instance As ChatRoomManagementServices
Dim roomInfo As ChatRoomInformation
Dim members As ICollection(Of PersistentChatPrincipalSummary)
Dim managers As ICollection(Of PersistentChatPrincipalSummary)
Dim presenters As ICollection(Of PersistentChatPrincipalSummary)
Dim userCallBack As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginUpdateChatRoom(roomInfo, _
	members, managers, presenters, userCallBack, _
	state)

Parameters

roomInfo
Type: Microsoft.Rtc.Collaboration.PersistentChat.Management.ChatRoomInformation

Object that contains the room settings

members
Type: System.Collections.Generic.ICollection<PersistentChatPrincipalSummary>

A collection of users and user groups to be set as members. Pass in null to leave the current members unchanged.

managers
Type: System.Collections.Generic.ICollection<PersistentChatPrincipalSummary>

A collection of users and user groups to be set as managers. Pass in null to leave the current managers unchanged.

presenters
Type: System.Collections.Generic.ICollection<PersistentChatPrincipalSummary>

A collection of users and user groups to be set as presenters. Pass in null to leave the current presenters unchanged.

userCallBack
Type: System.AsyncCallback

The method to be invoked when this asynchronous operation completes.

state
Type: System.Object

An object to be passed back to the callback.

Return value

Type: System.IAsyncResult
An IAsyncResult that references this operation.

ExceptionCondition
ArgumentNullException

roomInfo is null.

ChatServerConnectionException

The PersistentChatEndpoint is not established.

InvalidOperationException

The chat server connection is not in a valid state to send the command.

RealTimeException

The PersistentChatEndpoint encountered an error communicating with the chat server.

Show:
© 2014 Microsoft