Delen via


DataSourceCollection.Contains Method (DataSource)

Indicates whether the collection contains a specified DataSource.

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

Syntax

'Declaration
Public Function Contains ( _
    item As DataSource _
) As Boolean
'Usage
Dim instance As DataSourceCollection
Dim item As DataSource
Dim returnValue As Boolean

returnValue = instance.Contains(item)
public bool Contains(
    DataSource item
)
public:
bool Contains(
    DataSource^ item
)
member Contains : 
        item:DataSource -> bool 
public function Contains(
    item : DataSource
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the DataSource is contained in the collection; otherwise, false.