Partilhar via


SPClaimsAuthMembershipProvider.GetUser Method (String, Boolean)

Gets the user information from the data source based on the membership user name and, if specified, updates the last activity date/time stamp for the user.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

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

returnValue = instance.GetUser(name, userIsOnline)
public override MembershipUser GetUser(
    string name,
    bool userIsOnline
)

Parameters

  • name
    Type: System.String

    The name of the user for whom the information is retrieved.

  • userIsOnline
    Type: System.Boolean

    true to update the last-activity date/time stamp for the user; otherwise, false.

Return Value

Type: System.Web.Security.MembershipUser
An object that contains the information for the user.

Remarks

This override gets the information for the specified user in the membership provider that is not an SPClaimsAuthMembershipProvider, and is used by forms-based authentication in the current application. This method updates the last activity date/time stamp for the user if userIsOnline is true.

See Also

Reference

SPClaimsAuthMembershipProvider Class

SPClaimsAuthMembershipProvider Members

GetUser Overload

Microsoft.SharePoint.Administration.Claims Namespace