Share via


DataSourceManager.ICollection<DataSource>.Contains Method

Tests whether the DDEX data source collection contains a specified data source.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Private Function Contains ( _
    item As DataSource _
) As Boolean Implements ICollection(Of DataSource).Contains
bool ICollection<DataSource>.Contains(
    DataSource item
)
private:
virtual bool Contains(
    DataSource^ item
) sealed = ICollection<DataSource^>::Contains
private abstract Contains : 
        item:DataSource -> bool  
private override Contains : 
        item:DataSource -> bool
JScript does not support explicit interface implementations.

Parameters

Return Value

Type: System.Boolean
Returns true if the collection contains the specified data source; otherwise returns false.

Implements

ICollection<T>.Contains(T)

Remarks

Implements the Contains method.

.NET Framework Security

See Also

Reference

DataSourceManager Class

Microsoft.VisualStudio.Data Namespace