PrincipalPermissionAttribute.Role 屬性

定義

取得或設定在指定的安全性角色的成員資格。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

屬性值

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,角色就會以 "DomainName\GroupName" ) 形式 (Windows NT 使用者群組。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.

適用於