Share via


ISupportsListingByParent<T,ParentT,ManagerT>.ListByParentAsync Method

Definition

Overloads

ListByParentAsync(ParentT, CancellationToken)

Gets the information about a resource from Azure based on the resource id.

ListByParentAsync(String, String, CancellationToken)

Lists resources of the specified type in the specified resource group.

ListByParentAsync(ParentT, CancellationToken)

Gets the information about a resource from Azure based on the resource id.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<T>> ListByParentAsync (ParentT parentResource, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByParentAsync : 'ParentT * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<'T>>
Public Function ListByParentAsync (parentResource As ParentT, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPagedCollection(Of T))

Parameters

parentResource
ParentT

The instance of parent resource.

cancellationToken
CancellationToken

Returns

Applies to

ListByParentAsync(String, String, CancellationToken)

Lists resources of the specified type in the specified resource group.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<T>> ListByParentAsync (string resourceGroupName, string parentName, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByParentAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ResourceManager.Fluent.Core.IPagedCollection<'T>>
Public Function ListByParentAsync (resourceGroupName As String, parentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPagedCollection(Of T))

Parameters

resourceGroupName
String

The name of the resource group to list the resources from.

parentName
String

The name of parent resource.

cancellationToken
CancellationToken

Returns

Applies to