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

HubResource.GetRoleAssignmentResourceFormat(String, CancellationToken) 方法

定义

获取中心内的角色分配。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}
  • 操作IdRoleAssignments_Get
public virtual Azure.Response<Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatResource> GetRoleAssignmentResourceFormat (string assignmentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRoleAssignmentResourceFormat : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatResource>
override this.GetRoleAssignmentResourceFormat : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatResource>
Public Overridable Function GetRoleAssignmentResourceFormat (assignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RoleAssignmentResourceFormatResource)

参数

assignmentName
String

角色分配的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

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

assignmentName 为 null。

适用于