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

AppRole 构造函数

定义

重载

AppRole()

初始化 AppRole 类的新实例。

AppRole(String, IList<String>, String, String, Nullable<Boolean>, String)

初始化 AppRole 类的新实例。

AppRole()

初始化 AppRole 类的新实例。

public AppRole ();
Public Sub New ()

适用于

AppRole(String, IList<String>, String, String, Nullable<Boolean>, String)

初始化 AppRole 类的新实例。

public AppRole (string id = default, System.Collections.Generic.IList<string> allowedMemberTypes = default, string description = default, string displayName = default, bool? isEnabled = default, string value = default);
new Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.AppRole : string * System.Collections.Generic.IList<string> * string * string * Nullable<bool> * string -> Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.AppRole
Public Sub New (Optional id As String = Nothing, Optional allowedMemberTypes As IList(Of String) = Nothing, Optional description As String = Nothing, Optional displayName As String = Nothing, Optional isEnabled As Nullable(Of Boolean) = Nothing, Optional value As String = Nothing)

参数

id
String

appRoles 集合中的唯一角色标识符。

allowedMemberTypes
IList<String>

指定此应用角色定义是否可通过将 设置为“User”或分配给在守护程序服务方案中访问此应用程序的其他应用程序 (用户和组,) 设置为“Application”或同时分配给这两者。

description
String

显示在管理员应用程序和同意分配体验中的权限帮助文本。

displayName
String

管理员同意和应用程序分配体验中的权限的显示名称。

isEnabled
Nullable<Boolean>

在创建或更新角色定义时,必须将此属性设置为 true(默认值)。 若要删除角色,首先必须将此属性设置为 false。 此时,可以在后续调用中删除此角色。

value
String

指定应用程序应在身份验证和访问令牌中收到的角色声明的值。

适用于