Export (0) Print
Expand All

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)

abstract GetUser : 
        username:string * 
        userIsOnline:bool -> MembershipUser  
override GetUser : 
        username:string * 
        userIsOnline:bool -> MembershipUser

Parameters

username
Type: System.String
The name of the user to get information for.
userIsOnline
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.

NoteNote

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.

Show:
© 2014 Microsoft