State Info Collection. Remove(String, String) Method
Removes a PersonalizationStateInfo-derived object from the collection.
public: void Remove(System::String ^ path, System::String ^ username);
public void Remove (string path, string username);
member this.Remove : string * string -> unit
Public Sub Remove (path As String, username As String)
The relative application path of the personalization state object to be removed.
The collection was marked as read-only.
path is null.
both parameters are null.
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.
path is provided, then the SharedPersonalizationStateInfo instance for that path is removed. If both
username are provided, then the UserPersonalizationStateInfo instance for the combination of
username is removed.
You can try to remove a non-existing item from the collection; this action will not raise an exception.