共用方式為


RoleDefinition 建構函式

定義

多載

RoleDefinition()

初始化 RoleDefinition 類別的新實例。

RoleDefinition(String, String, String, String, String, String, IList<Permission>, IList<String>)

初始化 RoleDefinition 類別的新實例。

RoleDefinition()

初始化 RoleDefinition 類別的新實例。

public RoleDefinition ();
Public Sub New ()

適用於

RoleDefinition(String, String, String, String, String, String, IList<Permission>, IList<String>)

初始化 RoleDefinition 類別的新實例。

public RoleDefinition (string id = default, string name = default, string type = default, string roleName = default, string description = default, string roleType = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Authorization.Models.Permission> permissions = default, System.Collections.Generic.IList<string> assignableScopes = default);
new Microsoft.Azure.Management.Authorization.Models.RoleDefinition : string * string * string * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Authorization.Models.Permission> * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Authorization.Models.RoleDefinition
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional roleName As String = Nothing, Optional description As String = Nothing, Optional roleType As String = Nothing, Optional permissions As IList(Of Permission) = Nothing, Optional assignableScopes As IList(Of String) = Nothing)

參數

id
String

角色定義識別碼。

name
String

角色定義名稱。

type
String

角色定義類型。

roleName
String

角色名稱。

description
String

角色定義描述。

roleType
String

角色類型。

permissions
IList<Permission>

角色定義許可權。

assignableScopes
IList<String>

角色定義可指派的範圍。

適用於