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

CommunicationExtensions.GetCommunicationServiceResource 方法

定义

重载

GetCommunicationServiceResource(ArmClient, ResourceIdentifier)

获取一个对象, CommunicationServiceResource 该对象表示 ,以及可对它执行但不带数据的实例操作。 可以使用 CreateResourceIdentifier(String, String, String) 从其组件创建 。CommunicationServiceResourceResourceIdentifier

GetCommunicationServiceResource(ResourceGroupResource, String, CancellationToken)

获取 CommunicationService 及其属性。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • 操作IdCommunicationServices_Get

GetCommunicationServiceResource(ArmClient, ResourceIdentifier)

获取一个对象, CommunicationServiceResource 该对象表示 ,以及可对它执行但不带数据的实例操作。 可以使用 CreateResourceIdentifier(String, String, String) 从其组件创建 。CommunicationServiceResourceResourceIdentifier

public static Azure.ResourceManager.Communication.CommunicationServiceResource GetCommunicationServiceResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetCommunicationServiceResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Communication.CommunicationServiceResource
<Extension()>
Public Function GetCommunicationServiceResource (client As ArmClient, id As ResourceIdentifier) As CommunicationServiceResource

参数

client
ArmClient

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

id
ResourceIdentifier

要获取的资源的资源 ID。

返回

返回一个 CommunicationServiceResource 对象。

适用于

GetCommunicationServiceResource(ResourceGroupResource, String, CancellationToken)

获取 CommunicationService 及其属性。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}
  • 操作IdCommunicationServices_Get
public static Azure.Response<Azure.ResourceManager.Communication.CommunicationServiceResource> GetCommunicationServiceResource (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string communicationServiceName, System.Threading.CancellationToken cancellationToken = default);
static member GetCommunicationServiceResource : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Communication.CommunicationServiceResource>
<Extension()>
Public Function GetCommunicationServiceResource (resourceGroupResource As ResourceGroupResource, communicationServiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of CommunicationServiceResource)

参数

resourceGroupResource
ResourceGroupResource

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

communicationServiceName
String

CommunicationService 资源的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

communicationServiceName 是一个空字符串,预期为非空。

communicationServiceName 为 null。

适用于