IIdentity.Name 屬性

定義

取得目前使用者的名稱。

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
public string? Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

屬性值

程式碼正在代表其執行的使用者名稱。

備註

使用者名稱會由作業系統或其他驗證提供者傳遞至 Common Language Runtime (,例如 ASP.NET) 。

Name 通常設定為未驗證實體的空字串 (「」) ,但可以採用其他值。

適用於