Share via


GetUser Method (Object, Boolean)

Gets information from the data source for a user based on the unique identifier 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 ( _
    providerUserKey As Object, _
    userIsOnline As Boolean _
) As MembershipUser
'Usage
Dim instance As UpmMembershipProvider
Dim providerUserKey As Object
Dim userIsOnline As Boolean
Dim returnValue As MembershipUser

returnValue = instance.GetUser(providerUserKey, _
    userIsOnline)
public override MembershipUser GetUser(
    Object providerUserKey,
    bool userIsOnline
)
public:
virtual MembershipUser^ GetUser(
    Object^ providerUserKey, 
    bool userIsOnline
) override
public override function GetUser(
    providerUserKey : Object, 
    userIsOnline : boolean
) : MembershipUser

Parameters

  • providerUserKey
    Type: System..::.Object
    The unique identifier for the membership user to get information for.
  • 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

providerUserKey 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