PrincipalPermissionAttribute.Role PrincipalPermissionAttribute.Role PrincipalPermissionAttribute.Role PrincipalPermissionAttribute.Role Property

定义

获取或设置指定安全角色的成员条件。Gets or sets membership in a specified security role.

public:
 property System::String ^ Role { System::String ^ get(); void set(System::String ^ value); };
public string Role { get; set; }
member this.Role : string with get, set
Public Property Role As String

属性值

基于角色的基础安全提供程序中的角色名称。The name of a role from the underlying role-based security provider.

注解

可用角色因主机使用的身份验证提供程序而异。The available roles will differ based on the authentication provider in use by the host. 如果身份验证提供程序是 Windows NT,则角色是 Windows NT 用户组(格式为 "DomainName\GroupName")。If the authentication provider is Windows NT, roles are Windows NT user groups (in the form "DomainName\GroupName"). 检查主机的文档,以确定其使用的身份验证提供程序以及用户可属于的角色。Check the documentation of your host to determine which authentication provider it uses and what roles users can belong to.

适用于