SimpleMembershipProvider.GetUser SimpleMembershipProvider.GetUser SimpleMembershipProvider.GetUser Method

Definition

Overloads

GetUser(Object, Boolean) GetUser(Object, Boolean) GetUser(Object, Boolean)

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

GetUser(String, Boolean) GetUser(String, Boolean) GetUser(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.

GetUser(Object, Boolean) GetUser(Object, Boolean) GetUser(Object, Boolean)

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

public override System.Web.Security.MembershipUser GetUser (object providerUserKey, bool userIsOnline);
override this.GetUser : obj * bool -> System.Web.Security.MembershipUser
Public Overrides Function GetUser (providerUserKey As Object, userIsOnline As Boolean) As MembershipUser
Parameters
providerUserKey
Object Object Object

The ID for the user account to get information for. The ID is a Int32 value that is stored as an Object instance.

userIsOnline
Boolean Boolean Boolean

true to update the last-activity timestamp for the user account, or false to return user account information without updating the timestamp.

Returns

An object that is populated with the user account information, or null if providerUserKey is not found.

GetUser(String, Boolean) GetUser(String, Boolean) GetUser(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.

public override System.Web.Security.MembershipUser GetUser (string username, bool userIsOnline);
override this.GetUser : string * bool -> System.Web.Security.MembershipUser
Public Overrides Function GetUser (username As String, userIsOnline As Boolean) As MembershipUser
Parameters
username
String String String

The name of the user to get information for.

userIsOnline
Boolean Boolean Boolean

true to update the last-activity timestamp for the user account, or false to return user account information without updating the timestamp.

Returns

An object that is populated with the user account information, or null if username is not found.

Applies to