WebPubSubChatServiceClient.GetRoles 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 |
|---|---|
| GetRoles(Nullable<Int32>, String, CancellationToken) |
Query roles in a hub. |
| GetRoles(Nullable<Int32>, String, RequestContext) |
[Protocol Method] Query roles in a hub.
|
GetRoles(Nullable<Int32>, String, CancellationToken)
Query roles in a hub.
public virtual Azure.Pageable<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRole> GetRoles(int? maxPageSize = default, string continuationToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRoles : Nullable<int> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRole>
override this.GetRoles : Nullable<int> * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRole>
Public Overridable Function GetRoles (Optional maxPageSize As Nullable(Of Integer) = Nothing, Optional continuationToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of WebPubSubChatRole)
Parameters
- continuationToken
- String
Continuation token for pagination.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
Service returned a non-success status code.
Applies to
GetRoles(Nullable<Int32>, String, RequestContext)
[Protocol Method] Query roles in a hub.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Pageable<BinaryData> GetRoles(int? maxPageSize, string continuationToken, Azure.RequestContext context);
abstract member GetRoles : Nullable<int> * string * Azure.RequestContext -> Azure.Pageable<BinaryData>
override this.GetRoles : Nullable<int> * string * Azure.RequestContext -> Azure.Pageable<BinaryData>
Public Overridable Function GetRoles (maxPageSize As Nullable(Of Integer), continuationToken As String, context As RequestContext) As Pageable(Of BinaryData)
Parameters
- continuationToken
- String
Continuation token for pagination.
- 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
Service returned a non-success status code.