TenantCollection.GetAllAsync(CancellationToken) Method

Definition

Gets the tenants for your account.

  • Request Path: /tenants
  • Operation Id: Tenants_List
  • Default Api Version: 2022-12-01
  • Resource: TenantResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Resources.TenantResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Resources.TenantResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Resources.TenantResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of TenantResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to