你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

JobCollectionOperationsExtensions.CheckNameAvailabilityAsync 方法

定义

确定 JobCollection 名称是否可供使用。 JobCollection 名称在云服务中必须是唯一的。

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Scheduler.Models.JobCollectionCheckNameAvailabilityResponse> CheckNameAvailabilityAsync (this Microsoft.WindowsAzure.Management.Scheduler.IJobCollectionOperations operations, string cloudServiceName, string jobCollectionName);
static member CheckNameAvailabilityAsync : Microsoft.WindowsAzure.Management.Scheduler.IJobCollectionOperations * string * string -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Scheduler.Models.JobCollectionCheckNameAvailabilityResponse>
<Extension()>
Public Function CheckNameAvailabilityAsync (operations As IJobCollectionOperations, cloudServiceName As String, jobCollectionName As String) As Task(Of JobCollectionCheckNameAvailabilityResponse)

参数

operations
IJobCollectionOperations

对 Microsoft.WindowsAzure.Management.Scheduler.IJobCollectionOperations 的引用。

cloudServiceName
String

必需。 云服务的名称。

jobCollectionName
String

必需。 JobCollection 的名称。 名称在 CloudService 中必须是唯一的。 该名称的长度最长可以为 100 个字符。

返回

检查名称可用性操作响应。

适用于