共用方式為


CustomLocationCollection.GetAllAsync(CancellationToken) Method

Definition

Gets a list of Custom Locations in the specified subscription and resource group. The operation returns properties of each Custom Location. Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ExtendedLocation/customLocations Operation Id: CustomLocations_ListByResourceGroup

public virtual Azure.AsyncPageable<Azure.ResourceManager.ExtendedLocation.CustomLocationResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ExtendedLocation.CustomLocationResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ExtendedLocation.CustomLocationResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CustomLocationResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to