NDoc 1.3.1 SDK |

# ReferencePathCollection.Remove Method

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
    );

#### Parameters

refPath
  The ReferencePath to remove from the collection.

#### Remarks

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.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentNullException | refPath is a a null reference (Nothing in Visual Basic).

#### See Also

ReferencePathCollection Class | NDoc.Core Namespace