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

Identity 构造函数

定义

重载

Identity()

初始化 Identity 类的新实例。

Identity(Nullable<ResourceIdentityType>, String, String, IDictionary<String,UserAssignedIdentity>)

初始化 Identity 类的新实例。

Identity()

初始化 Identity 类的新实例。

public Identity ();
Public Sub New ()

适用于

Identity(Nullable<ResourceIdentityType>, String, String, IDictionary<String,UserAssignedIdentity>)

初始化 Identity 类的新实例。

public Identity (Microsoft.Azure.Management.CognitiveServices.Models.ResourceIdentityType? type = default, string tenantId = default, string principalId = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.CognitiveServices.Models.UserAssignedIdentity> userAssignedIdentities = default);
new Microsoft.Azure.Management.CognitiveServices.Models.Identity : Nullable<Microsoft.Azure.Management.CognitiveServices.Models.ResourceIdentityType> * string * string * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.CognitiveServices.Models.UserAssignedIdentity> -> Microsoft.Azure.Management.CognitiveServices.Models.Identity
Public Sub New (Optional type As Nullable(Of ResourceIdentityType) = Nothing, Optional tenantId As String = Nothing, Optional principalId As String = Nothing, Optional userAssignedIdentities As IDictionary(Of String, UserAssignedIdentity) = Nothing)

参数

type
Nullable<ResourceIdentityType>

标识类型。 可能的值包括:“None”、“SystemAssigned”、“UserAssigned”、“SystemAssigned、UserAssigned”

tenantId
String

资源的租户 ID。

principalId
String

资源标识的主体 ID。

userAssignedIdentities
IDictionary<String,UserAssignedIdentity>

与资源关联的用户分配标识的列表。 用户标识字典密钥引用将是 ARM 资源 ID,格式为:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}

适用于