PersonalizationStateInfoCollection.Remove Method
Assembly: System.Web (in system.web.dll)
public void Remove ( String path, String username )
public function Remove ( path : String, username : String )
Parameters
- path
The relative application path of the personalization state object to be removed.
- username
The user name of the UserPersonalizationStateInfo-derived object to be removed.
This method removes a PersonalizationStateInfo-derived instance from the collection. Any elements after the removed instance are moved up to occupy the vacant position. Internally, the count of the collection is decremented by one. Any enumerators currently active against the collection are invalidated.
If only path is provided, then the SharedPersonalizationStateInfo instance for that path is removed. If both path and username are provided, then the UserPersonalizationStateInfo instance for the combination of path and username is removed.
Note |
|---|
| You can try to remove a non-existing item from the collection; this action will not raise an exception. |
Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note