PrincipalPermissionAttribute.Role 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定指定安全角色的成員資格。
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
屬性值
來自底層基於角色的資安提供者的角色名稱。
備註
可用角色會根據主機所使用的認證提供者而有所不同。 若認證提供者為 Windows NT,則角色為 Windows NT 使用者群組(格式為「DomainName\GroupName」)。 請查閱主機文件,確認它使用哪個認證提供者,以及使用者可以屬於哪些角色。