System.Web.Profile.ProfileProvider.DeleteProfiles Method

When overridden in a derived class, deletes profile properties and information for the supplied list of profiles.

Syntax

public abstract int DeleteProfiles (ProfileInfoCollection profiles)

Parameters

profiles
A System.Web.Profile.ProfileInfoCollection of information about profiles that are to be deleted.

Returns

The number of profiles deleted from the data source.

Remarks

The ProfileProvider.DeleteProfiles(ProfileInfoCollection) method deletes the profiles specified in the profiles parameter. Only data for the applicationName specified in the configuration file is removed.

When implementing this method in a derived class, you can use the applicationName value and the ProfileInfo.UserName property of each System.Web.Profile.ProfileInfo object in the supplied System.Web.Profile.ProfileInfoCollection to determine which profiles to delete from your data source.

Requirements

Namespace: System.Web.Profile
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0