ProfileProvider.DeleteProfiles Method (ProfileInfoCollection)
Assembly: System.Web (in system.web.dll)
public abstract int DeleteProfiles ( ProfileInfoCollection profiles )
public abstract function DeleteProfiles ( profiles : ProfileInfoCollection ) : int
Not applicable.
Parameters
- profiles
A ProfileInfoCollection of information about profiles that are to be deleted.
Return Value
The number of profiles deleted from the data source.The DeleteProfiles 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 UserName property of each ProfileInfo object in the supplied ProfileInfoCollection to determine which profiles to delete from your data source.
The following code example shows the method signature for an implementation of the DeleteProfiles method. For an example of a full ProfileProvider implementation, see Sample Profile Provider Implementation.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.