Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ProfileProviderAdapter.FindInactiveProfilesByUserName Method

When overridden in a derived class, retrieves profile information for profiles in which the last activity date occurred on or before the specified date and the user name matches the specified user name.

[Visual Basic]
Public Overrides Sub FindInactiveProfilesByUserName( _
   ByVal authenticationOption As ProfileAuthenticationOption, _
   ByVal usernameToMatch As String, _
   ByVal userInactiveSinceDate As Date, _
   ByVal pageIndex As Integer, _
   ByVal pageSize As Integer, _
   ByRef totalRecords As Integer _
) _
    Implements IProfileProvider.FindInactiveProfilesByUserName
[C#]
public override ProfileInfoCollection FindInactiveProfilesByUserName(
   ProfileAuthenticationOption authenticationOption,
   string usernameToMatch,
   DateTime userInactiveSinceDate,
   int pageIndex,
   int pageSize,
   out int totalRecords
);

Parameters

authenticationOption
One of the ProfileAuthenticationOption values, specifying whether anonymous, authenticated, or both types of profiles are returned.
usernameToMatch
The user name to search for.
userInactiveSinceDate
A DateTime that identifies which user profiles are considered inactive. If the LastActivityDate value of a user profile occurs on or before this date and time, the profile is considered inactive.
pageIndex
The index of the page of results to return.
pageSize
The size of the page of results to return.
totalRecords
When this method returns, contains the total number of profiles.

Return Value

A ProfileInfoCollection containing user profile information for inactive profiles where the user name matches the supplied usernameToMatch parameter.

Implements

IProfileProvider.FindInactiveProfilesByUserName

See Also

ProfileProviderAdapter Class | Spring.Web.Providers Namespace