WebPubSubChatServiceClient.GetTopicsAsync 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 |
|---|---|
| GetTopicsAsync(String, Nullable<Int32>, RequestContext) |
[Protocol Method] List topics in a room with pagination.
|
| GetTopicsAsync(String, Nullable<Int32>, CancellationToken) |
List topics in a room with pagination. |
GetTopicsAsync(String, Nullable<Int32>, RequestContext)
[Protocol Method] List topics in a room with pagination.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.AsyncPageable<BinaryData> GetTopicsAsync(string roomId, int? maxPageSize, Azure.RequestContext context);
abstract member GetTopicsAsync : string * Nullable<int> * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
override this.GetTopicsAsync : string * Nullable<int> * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetTopicsAsync (roomId As String, maxPageSize As Nullable(Of Integer), context As RequestContext) As AsyncPageable(Of BinaryData)
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
GetTopicsAsync(String, Nullable<Int32>, CancellationToken)
List topics in a room with pagination.
public virtual Azure.AsyncPageable<Azure.Messaging.WebPubSub.Chat.ChatTopic> GetTopicsAsync(string roomId, int? maxPageSize = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTopicsAsync : string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Messaging.WebPubSub.Chat.ChatTopic>
override this.GetTopicsAsync : string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Messaging.WebPubSub.Chat.ChatTopic>
Public Overridable Function GetTopicsAsync (roomId As String, Optional maxPageSize As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ChatTopic)
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.