System.Web.Security.SqlMembershipProvider.GetUser Method

Gets the information from the data source for the membership user associated with the specified unique identifier and updates the last activity date/time stamp for the user, if specified.

Syntax

public override MembershipUser GetUser (object providerUserKey, bool userIsOnline)

Parameters

providerUserKey
The unique identifier for the user.
userIsOnline
true to update the last-activity date/time stamp for the specified user; otherwise, false.

Returns

A System.Web.Security.MembershipUser object representing the user associated with the specified unique identifier. If no user is found in the database for the specified providerUserKey value, null is returned.

Remarks

Membership.GetUser(object, bool) retrieves the user information from the data source and creates a System.Web.Security.MembershipUser object populated with the returned data. The user is identified using the unique identifier specified with the providerUserKey parameter.

Requirements

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