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 Overrides Function GetUser ( _
	username As String, _
	userIsOnline As Boolean _
) As MembershipUser
Dim instance As SimpleMembershipProvider
Dim username As String
Dim userIsOnline As Boolean
Dim returnValue As MembershipUser

returnValue = instance.GetUser(username, _


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 Nothing 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.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.