System.Web.Security.MembershipUser.ProviderUserKey Property

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

Syntax

public virtual object ProviderUserKey { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0