Share via


VirtualHubCollection.GetAllAsync(CancellationToken) Method

Definition

Lists all the VirtualHubs in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs
  • Operation Id: VirtualHubs_ListByResourceGroup
  • Default Api Version: 2024-03-01
  • Resource: VirtualHubResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Network.VirtualHubResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.VirtualHubResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.VirtualHubResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of VirtualHubResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to