VistaDB 6
VistaDB.Web Namespace / VistaDBProfileProvider Class / DeleteInactiveProfiles Method
One of the System.Web.Profile.ProfileAuthenticationOption values, specifying whether anonymous, authenticated, or both types of profiles are deleted.
A System.DateTime that identifies which user profiles are considered inactive. If the System.Web.Profile.ProfileInfo.LastActivityDate value of a user profile occurs on or before this date and time, the profile is considered inactive.


In This Topic
    DeleteInactiveProfiles Method
    In This Topic
    When overridden in a derived class, deletes all user-profile data for profiles in which the last activity date occurred before the specified date.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function DeleteInactiveProfiles( _
       ByVal authenticationOption As System.Web.Profile.ProfileAuthenticationOption, _
       ByVal userInactiveSinceDate As System.Date _
    ) As System.Integer
    'Usage
     
    
    Dim instance As VistaDBProfileProvider
    Dim authenticationOption As System.Web.Profile.ProfileAuthenticationOption
    Dim userInactiveSinceDate As System.Date
    Dim value As System.Integer
     
    value = instance.DeleteInactiveProfiles(authenticationOption, userInactiveSinceDate)
    public override System.int DeleteInactiveProfiles( 
       System.Web.Profile.ProfileAuthenticationOption authenticationOption,
       System.DateTime userInactiveSinceDate
    )

    Parameters

    authenticationOption
    One of the System.Web.Profile.ProfileAuthenticationOption values, specifying whether anonymous, authenticated, or both types of profiles are deleted.
    userInactiveSinceDate
    A System.DateTime that identifies which user profiles are considered inactive. If the System.Web.Profile.ProfileInfo.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.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also