共用方式為


PassportIdentity.Name 屬性

定義

取得目前使用者的名稱。 這個類別已被取代。

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

屬性值

String

目前使用者的名稱,這是 Passport 唯一識別項 (PUID)。

實作

範例

// Declare new PassportIdendity object as variable newPass.
System.Web.Security.PassportIdentity newPass = new System.Web.Security.PassportIdentity();
// Set a string variable to the Passport member name from the cookie.
string sMemberName = newPass.Name;
' Declare new PassportIdendity object as variable newPass.
Dim newPass As System.Web.Security.PassportIdentity = New System.Web.Security.PassportIdentity()
' Set a string variable to the Passport member name from the cookie.
Dim sMemberName As String = newPass.Name

備註

這個類別已被取代,不再受到支援。 Microsoft Passport 網路已由 Windows Live ID 取代。

適用於