MSDN Library

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:
virtual MembershipUser^ GetUser(
	String^ username, 
	bool userIsOnline
) override

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

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show:
© 2016 Microsoft