PrincipalPermissionAttribute.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

角色型基礎安全性提供者的角色名稱。

備註

可用的角色會根據主機所使用的驗證提供者而有所不同。 如果驗證提供者Windows NT,角色會以 「DomainName\GroupName」 格式) Windows NT使用者群組 (。 請檢查主機的檔,以判斷其使用哪個驗證提供者,以及使用者可以所屬的角色。

適用於