MembershipUser.ProviderUserKey Property

Gets the user identifier from the membership data source for the user.

Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)

public virtual Object ProviderUserKey { get; }
/** @property */
public Object get_ProviderUserKey ()

public function get ProviderUserKey () : Object

Not applicable.

Property Value

The user identifier from the membership data source for the user.

The ProviderUserKey property exposes the identifier from the membership data source typed as object. The type of the identifier depends on the MembershipProvider or the MembershipUser. In the case of the SqlMembershipProvider, the ProviderUserKey can be cast as a Guid, since the SqlMembershipProvider stores the user identifier as a UniqueIdentifier.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: