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