共用方式為


MediaExtensions.GetMediaServicesAccountsAsync Method

Definition

List Media Services accounts in the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices
  • Operation Id: Mediaservices_ListBySubscription
public static Azure.AsyncPageable<Azure.ResourceManager.Media.MediaServicesAccountResource> GetMediaServicesAccountsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetMediaServicesAccountsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Media.MediaServicesAccountResource>
<Extension()>
Public Function GetMediaServicesAccountsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of MediaServicesAccountResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of MediaServicesAccountResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to