Share via


PrincipalPermissionAttribute.Name 屬性

定義

取得或設定與目前主體關聯的識別名稱。

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

屬性值

要與基礎角色型安全性提供者所提供的名稱進行比對的名稱。

備註

如果驗證提供者 Windows NT,Name則與使用者 Windows NT 登入名稱 (相同,格式為 “DomainName\UserName”) 。 請檢查主機的檔,以判斷它所使用的驗證提供者,以及它如何判斷目前主體的身分識別。

適用於