共用方式為


NetAppExtensions.CheckNetAppNameAvailabilityAsync 方法

定義

檢查資源名稱是否可用。

  • 要求路徑/訂用帳戶/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkNameAvailability
  • 作業IdNetAppResource_CheckNameAvailability
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetApp.Models.NetAppCheckAvailabilityResult>> CheckNetAppNameAvailabilityAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckNetAppNameAvailabilityAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.NetApp.Models.NetAppNameAvailabilityContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetApp.Models.NetAppCheckAvailabilityResult>>
<Extension()>
Public Function CheckNetAppNameAvailabilityAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, content As NetAppNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetAppCheckAvailabilityResult))

參數

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 將對其執行的實例。

location
AzureLocation

Azure 區域的名稱。

content
NetAppNameAvailabilityContent

名稱可用性要求。

cancellationToken
CancellationToken

要使用的取消權杖。

傳回

例外狀況

content 為 null。

適用於