共用方式為


SPClaimsAuthMembershipProvider.GetUser Method (Object, Boolean)

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

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

Syntax

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

returnValue = instance.GetUser(userId, _
    userIsOnline)
public override MembershipUser GetUser(
    Object userId,
    bool userIsOnline
)

Parameters

  • userId
    Type: System.Object

    The unique ID of the membership user for whom the information is retrieved.

  • userIsOnline
    Type: System.Boolean

    true to update the last-activity date/time stamp for the membership 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 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