ChatRoomManagementServices.BeginCreateChatRoom Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| BeginCreateChatRoom(ChatRoomSettings, AsyncCallback, Object) |
Create a new chat room with the given settings. This request will be processed asynchronously. See EndCreateChatRoom(IAsyncResult) to complete this asynchronous operation. |
| BeginCreateChatRoom(String, Uri, AsyncCallback, Object) |
Create a new chat room with the given name and parent category Uri. This request will be processed asynchronously. See EndCreateChatRoom(IAsyncResult) to complete this asynchronous operation. |
BeginCreateChatRoom(ChatRoomSettings, AsyncCallback, Object)
Create a new chat room with the given settings. This request will be processed asynchronously. See EndCreateChatRoom(IAsyncResult) to complete this asynchronous operation.
public:
IAsyncResult ^ BeginCreateChatRoom(Microsoft::Rtc::Collaboration::PersistentChat::ChatRoomSettings ^ settings, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginCreateChatRoom(Microsoft.Rtc.Collaboration.PersistentChat.ChatRoomSettings settings, AsyncCallback userCallback, object state);
member this.BeginCreateChatRoom : Microsoft.Rtc.Collaboration.PersistentChat.ChatRoomSettings * AsyncCallback * obj -> IAsyncResult
Public Function BeginCreateChatRoom (settings As ChatRoomSettings, userCallback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- settings
- ChatRoomSettings
The settings to be applied to the new chat room.
- 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
settings is null.
The Name property of settings is null or empty.
The PersistentChatEndpoint is not established.
The Name property of settings is null or empty or 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
BeginCreateChatRoom(String, Uri, AsyncCallback, Object)
Create a new chat room with the given name and parent category Uri. This request will be processed asynchronously. See EndCreateChatRoom(IAsyncResult) to complete this asynchronous operation.
public:
IAsyncResult ^ BeginCreateChatRoom(System::String ^ chatRoomName, Uri ^ parentCategoryUri, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginCreateChatRoom(string chatRoomName, Uri parentCategoryUri, AsyncCallback userCallback, object state);
member this.BeginCreateChatRoom : string * Uri * AsyncCallback * obj -> IAsyncResult
Public Function BeginCreateChatRoom (chatRoomName As String, parentCategoryUri As Uri, userCallback As AsyncCallback, state As Object) As IAsyncResult
Parameters
- chatRoomName
- String
Name of the new chat room
- parentCategoryUri
- Uri
URI of the parent category into which this chat room will be created.
- 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
chatRoomName is null or empty.
The PersistentChatEndpoint is not established.
The chat server connection is not in a valid state to send the command.
The PersistentChatEndpoint encountered an error communicating with the chat server.