Removes the first occurence of a specific ReferencePath from the collection.
[Visual Basic] Public Sub Remove( _ ByVal refPath As ReferencePath _ ) [C#] public void Remove( ReferencePath refPath ); [C++] public: void Remove( ReferencePath* refPath ); [JScript] public function Remove( ReferencePath refPath );
Elements that follow the removed element move up to occupy the vacated spot and the indexes of the elements that are moved are also updated.
Exception Type | Condition |
---|---|
ArgumentNullException | refPath is a a null reference (Nothing in Visual Basic). |
ReferencePathCollection Class | NDoc.Core Namespace