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

WebPubSubExtensions.CheckWebPubSubNameAvailability 方法

定义

检查资源名称是否有效且尚未使用。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability
  • 操作IdWebPubSub_CheckNameAvailability
public static Azure.Response<Azure.ResourceManager.WebPubSub.Models.WebPubSubNameAvailability> CheckWebPubSubNameAvailability (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.WebPubSub.Models.WebPubSubNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default);
static member CheckWebPubSubNameAvailability : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.WebPubSub.Models.WebPubSubNameAvailabilityContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.WebPubSub.Models.WebPubSubNameAvailability>
<Extension()>
Public Function CheckWebPubSubNameAvailability (subscriptionResource As SubscriptionResource, location As AzureLocation, content As WebPubSubNameAvailabilityContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of WebPubSubNameAvailability)

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

location
AzureLocation

区域。

content
WebPubSubNameAvailabilityContent

提供给操作的参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

content 为 null。

适用于