Identity 建構函式

定義

多載

Identity()

初始化 Identity 類別的新實例。

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

初始化 Identity 類別的新實例。

Identity()

初始化 Identity 類別的新實例。

public Identity ();
Public Sub New ()

適用於

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

初始化 Identity 類別的新實例。

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

參數

principalId
String

資源識別的主體識別碼。

tenantId
String

資源的租使用者識別碼。

type
Nullable<ResourceIdentityType>

識別類型。 可能的值包括:'SystemAssigned'、'UserAssigned'、'SystemAssigned、UserAssigned'、'None'

userAssignedIdentities
IDictionary<String,IdentityUserAssignedIdentitiesValue>

與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源識別碼:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。

適用於