語言

ClientFormsAuthenticationCredentials.UserName 屬性

定義

取得或設定使用者名稱。

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

屬性值

使用者名稱。

備註

該 ClientFormsAuthenticationMembershipProvider 類別利用此特性在認證過程中取得使用者名稱。 你通常不會在申請代碼中使用這個特性。 相反地,你會使用 class constructor 來設定使用者名稱。

適用於

另請參閱