Identity 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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}'。