SimpleMembershipProvider.GetUser Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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) |
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)
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
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
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.
Applies to
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
The name of the user to get information for.
- userIsOnline
- 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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for