ISupportsListingByParent<T,ParentT,ManagerT>.ListByParentAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET