Share via


DataSourceCollection.Remove Method (DataSource)

Removes the specified DataSource from the collection.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

'Declaration
Public Sub Remove ( _
    item As DataSource _
)
'Usage
Dim instance As DataSourceCollection
Dim item As DataSource

instance.Remove(item)
public void Remove(
    DataSource item
)
public:
void Remove(
    DataSource^ item
)
member Remove : 
        item:DataSource -> unit 
public function Remove(
    item : DataSource
)

Parameters

Exceptions

Exception Condition
ItemNotFoundException

item is not contained by the collection.