VirtualHubsOperationsExtensions.ListByResourceGroupAsync(IVirtualHubsOperations, String, CancellationToken) Method

Definition

Lists all the VirtualHubs in a resource group.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.VirtualHub>> ListByResourceGroupAsync (this Microsoft.Azure.Management.Network.IVirtualHubsOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default);
static member ListByResourceGroupAsync : Microsoft.Azure.Management.Network.IVirtualHubsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.VirtualHub>>
<Extension()>
Public Function ListByResourceGroupAsync (operations As IVirtualHubsOperations, resourceGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of VirtualHub))

Parameters

operations
IVirtualHubsOperations

The operations group for this extension method.

resourceGroupName
System.String

The resource group name of the VirtualHub.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<IPage<VirtualHub>>

Applies to