System.Web.Security.Membership.GetUser Method

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

Syntax

public static MembershipUser GetUser (object providerUserKey, bool userIsOnline)

Parameters

providerUserKey
The unique user identifier from the membership data source for the user.
userIsOnline
If true, updates the last-activity date/time stamp for the specified user.

Returns

A System.Web.Security.MembershipUser object representing the user associated with the specified unique identifier.

Remarks

The Membership.GetUser(object, bool) method 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 with the unique identifier from the data source specified in 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