共用方式為


TenantCollection.GetAll(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.Pageable<Azure.ResourceManager.Resources.TenantResource> GetAll (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Resources.TenantResource>
override this.GetAll : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Resources.TenantResource>
Public Overridable Function GetAll (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of TenantResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to