IVsaItems.Remove(Int32) Method
Removes an item from the collection, as specified by its index value.
public: void Remove(
int Index
);
public void Remove(
int Index
);
MustOverride Overloads Public Sub Remove( _
ByVal Index As Integer _
)
Parameters
- index
The index value of the item to be removed.
Remarks
This is an overloaded method that removes the specified item from the collection using the index parameter, which must fall between 0 and the value of IVsaItems.Count property minus 1, inclusive.
Upon removing an item, the IVsaEngine.IsDirty property returns true until IVsaEngine.SaveSourceState is called.
The following table shows the exceptions that the Remove(Int32) method can throw.
Exception Type |
Condition |
---|---|
EngineClosed |
The IVsaEngine.Close method has been called and the engine is closed. |
EngineNotInitialized |
The engine has not been initialized. |
EngineRunning |
The engine is running. |
ItemNotFound |
The item was not found in the collection. |