ISupportsGettingByParent<T,ParentT,ManagerT>.GetByParentAsync 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
GetByParentAsync(ParentT, String, CancellationToken) |
Gets the information about a resource from Azure based on the resource id. |
GetByParentAsync(String, String, String, CancellationToken) |
Gets the information about a resource from Azure based on the resource id. |
GetByParentAsync(ParentT, String, CancellationToken)
Gets the information about a resource from Azure based on the resource id.
public System.Threading.Tasks.Task<T> GetByParentAsync (ParentT parentResource, string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetByParentAsync : 'ParentT * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
Public Function GetByParentAsync (parentResource As ParentT, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)
Parameters
- parentResource
- ParentT
The instance of parent resource.
- name
- String
The name of resource.
- cancellationToken
- CancellationToken
Returns
Applies to
GetByParentAsync(String, String, String, CancellationToken)
Gets the information about a resource from Azure based on the resource id.
public System.Threading.Tasks.Task<T> GetByParentAsync (string resourceGroup, string parentName, string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetByParentAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'T>
Public Function GetByParentAsync (resourceGroup As String, parentName As String, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of T)
Parameters
- resourceGroup
- String
The name of resource group.
- parentName
- String
The name of parent resource.
- name
- String
The name of resource.
- cancellationToken
- CancellationToken
Returns
Applies to
Azure SDK for .NET