ChatRoomManagementServices.BeginChangeParentCategory Method

Definition

Move a chat room to a new parent category. This request will be processed asynchronously. See EndChangeParentCategory(IAsyncResult) to complete this asynchronous operation.

public:
 IAsyncResult ^ BeginChangeParentCategory(Microsoft::Rtc::Collaboration::PersistentChat::ChatRoom ^ chatRoomToChange, Uri ^ newParentCategoryUri, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginChangeParentCategory (Microsoft.Rtc.Collaboration.PersistentChat.ChatRoom chatRoomToChange, Uri newParentCategoryUri, AsyncCallback userCallback, object state);
member this.BeginChangeParentCategory : Microsoft.Rtc.Collaboration.PersistentChat.ChatRoom * Uri * AsyncCallback * obj -> IAsyncResult
Public Function BeginChangeParentCategory (chatRoomToChange As ChatRoom, newParentCategoryUri As Uri, userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

chatRoomToChange
ChatRoom

The chat room to move.

newParentCategoryUri
Uri

The new parent category URI.

userCallback
AsyncCallback

The method to be invoked when this asynchronous operation completes.

state
Object

An object to be passed back to the callback.

Returns

An IAsyncResult that references this operation.

Exceptions

chatRoomToChange or newParentCategoryUri is null.

newParentCategoryUri is not a valid category URI.

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

The PersistentChatEndpoint encountered an error communicating with the chat server.

Applies to