WebPubSubChatServiceClient.GetRoomAsync 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 |
|---|---|
| GetRoomAsync(String, RequestContext) |
[Protocol Method] Get room information.
|
| GetRoomAsync(String, CancellationToken) |
Get room information. |
GetRoomAsync(String, RequestContext)
[Protocol Method] Get room information.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> GetRoomAsync(string roomId, Azure.RequestContext context);
abstract member GetRoomAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetRoomAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetRoomAsync (roomId As String, context As RequestContext) As Task(Of Response)
Parameters
- roomId
- String
Room identifier.
- context
- RequestContext
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
roomId is null.
roomId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetRoomAsync(String, CancellationToken)
Get room information.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoom>> GetRoomAsync(string roomId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRoomAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoom>>
override this.GetRoomAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRoom>>
Public Overridable Function GetRoomAsync (roomId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of WebPubSubChatRoom))
Parameters
- roomId
- String
Room identifier.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
roomId is null.
roomId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.