SimpleMembershipProvider.GetUser Method (String, Boolean)

Returns information about the user account using the specified user name, and optionally updates the timestamp of the most recent activity for the user account.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

public override function GetUser(
	username : String, 
	userIsOnline : boolean
) : MembershipUser


Type: System.String
The name of the user to get information for.
Type: System.Boolean
true to update the last-activity timestamp for the user account, or false to return user account information without updating the timestamp.

Return Value

Type: System.Web.Security.MembershipUser
An object that is populated with the user account information, or a null reference (Nothing in Visual Basic) if username is not found.


If the InitializeDatabaseConnection() method has not been called, and if you have configured your site to use the standard ASP.NET membership provider, this method is passed through to the standard membership provider. For more information, see the SimpleMembershipProvider class overview.