Sprog

WebPubSubChatServiceClient.GetRolesAsync Method

Definition

Overloads

Name Description
GetRolesAsync(Nullable<Int32>, CancellationToken)

Query roles in a hub.

GetRolesAsync(Nullable<Int32>, 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.

GetRolesAsync(Nullable<Int32>, CancellationToken)

Source:
WebPubSubChatServiceClient.cs

Query roles in a hub.

public virtual Azure.AsyncPageable<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRole> GetRolesAsync(int? maxPageSize = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRolesAsync : Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRole>
override this.GetRolesAsync : Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Messaging.WebPubSub.Chat.WebPubSubChatRole>
Public Overridable Function GetRolesAsync (Optional maxPageSize As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of WebPubSubChatRole)

Parameters

maxPageSize
Nullable<Int32>

The maximum number of result items per page.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

Service returned a non-success status code.

Applies to

GetRolesAsync(Nullable<Int32>, RequestContext)

Source:
WebPubSubChatServiceClient.cs

[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.AsyncPageable<BinaryData> GetRolesAsync(int? maxPageSize, Azure.RequestContext context);
abstract member GetRolesAsync : Nullable<int> * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
override this.GetRolesAsync : Nullable<int> * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetRolesAsync (maxPageSize As Nullable(Of Integer), context As RequestContext) As AsyncPageable(Of BinaryData)

Parameters

maxPageSize
Nullable<Int32>

The maximum number of result items per page.

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.

Applies to