ChatRoomManagementServices.BeginGetChatRoom Method

Definition

Overloads

BeginGetChatRoom(String, AsyncCallback, Object)

Retrieves the ChatRoom with the given name. This request will be processed asynchronously. See EndGetChatRoom(IAsyncResult) to complete this asynchronous operation.

BeginGetChatRoom(Uri, AsyncCallback, Object)

Retrieves the ChatRoom for the given URI. This request will be processed asynchronously. See EndGetChatRoom(IAsyncResult) to complete this asynchronous operation.

BeginGetChatRoom(String, AsyncCallback, Object)

Retrieves the ChatRoom with the given name. This request will be processed asynchronously. See EndGetChatRoom(IAsyncResult) to complete this asynchronous operation.

public:
 IAsyncResult ^ BeginGetChatRoom(System::String ^ chatRoomName, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginGetChatRoom (string chatRoomName, AsyncCallback userCallback, object state);
member this.BeginGetChatRoom : string * AsyncCallback * obj -> IAsyncResult
Public Function BeginGetChatRoom (chatRoomName As String, userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

chatRoomName
String

The name of the 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

chatRoomName is null or empty.

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

BeginGetChatRoom(Uri, AsyncCallback, Object)

Retrieves the ChatRoom for the given URI. This request will be processed asynchronously. See EndGetChatRoom(IAsyncResult) to complete this asynchronous operation.

public:
 IAsyncResult ^ BeginGetChatRoom(Uri ^ chatRoomUri, AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginGetChatRoom (Uri chatRoomUri, AsyncCallback userCallback, object state);
member this.BeginGetChatRoom : Uri * AsyncCallback * obj -> IAsyncResult
Public Function BeginGetChatRoom (chatRoomUri As Uri, userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

chatRoomUri
Uri

The chat room 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

chatRoomUri is not a valid chat room URI.

chatRoomUri is null.

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