Freigeben über


AdvisorExtensions.GetAdvisorMetadataEntityAsync Method

Definition

Gets the metadata entity. <item> Mocking. To mock this method, please mock GetAdvisorMetadataEntityAsync(String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Advisor.AdvisorMetadataEntityResource>> GetAdvisorMetadataEntityAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string name, System.Threading.CancellationToken cancellationToken = default);
static member GetAdvisorMetadataEntityAsync : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Advisor.AdvisorMetadataEntityResource>>
<Extension()>
Public Function GetAdvisorMetadataEntityAsync (tenantResource As TenantResource, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AdvisorMetadataEntityResource))

Parameters

tenantResource
TenantResource

The TenantResource the method will execute against.

name
String

Name of metadata entity.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

tenantResource is null.

Applies to