Share via


GetUser Method (String, Boolean)

Gets information from the data source for a user based on the name for the membership user. Provides an option to update the last activity date/time stamp for the user.

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Overrides Function GetUser ( _
    username As String, _
    userIsOnline As Boolean _
) As MembershipUser
'Usage
Dim instance As UpmMembershipProvider
Dim username As String
Dim userIsOnline As Boolean
Dim returnValue As MembershipUser

returnValue = instance.GetUser(username, _
    userIsOnline)
public override MembershipUser GetUser(
    string username,
    bool userIsOnline
)
public:
virtual MembershipUser^ GetUser(
    String^ username, 
    bool userIsOnline
) override
public override function GetUser(
    username : String, 
    userIsOnline : boolean
) : MembershipUser

Parameters

  • userIsOnline
    Type: System..::.Boolean
    true to update the last activity date/time stamp for the user; false to return user information without updating the last activity date/time stamp for the user.

Return Value

Type: System.Web.Security..::.MembershipUser
A System.Web.Security.MembershipUser object populated with the specified user's information from the data source.

Exceptions

Exception Condition
ArgumentNullException

username is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

Returns a System.Web.Security.MembershipUser object populated with the specified user's information from the data source.

Permissions

See Also

Reference

UpmMembershipProvider Class

UpmMembershipProvider Members

GetUser Overload

Microsoft.CommerceServer.Runtime.Profiles Namespace