Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ProfileProviderAdapter.DeleteInactiveProfiles Method

When overridden in a derived class, deletes all user-profile data for profiles in which the last activity date occurred before the specified date.

[Visual Basic]
Public Overrides Sub DeleteInactiveProfiles( _
   ByVal authenticationOption As ProfileAuthenticationOption, _
   ByVal userInactiveSinceDate As Date _
) _
    Implements IProfileProvider.DeleteInactiveProfiles
[C#]
public override int DeleteInactiveProfiles(
   ProfileAuthenticationOption authenticationOption,
   DateTime userInactiveSinceDate
);

Parameters

authenticationOption
One of the ProfileAuthenticationOption values, specifying whether anonymous, authenticated, or both types of profiles are deleted.
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.

Return Value

The number of profiles deleted from the data source.

Implements

IProfileProvider.DeleteInactiveProfiles

See Also

ProfileProviderAdapter Class | Spring.Web.Providers Namespace