共用方式為


DataSourceCollection.Contains Method

Definition

Overloads

Contains(DataSource)

Indicates whether the collection contains the specified DataSource.

Contains(String)

Indicates whether the collection contains a DataSource with the specified identifier.

Contains(DataSource)

Indicates whether the collection contains the specified DataSource.

public bool Contains (Microsoft.AnalysisServices.DataSource item);
override this.Contains : Microsoft.AnalysisServices.DataSource -> bool
Public Function Contains (item As DataSource) As Boolean

Parameters

item
DataSource

The DataSource to be located.

Returns

True, if the specified DataSource is found in the collection, otherwise, false.

Applies to

Contains(String)

Indicates whether the collection contains a DataSource with the specified identifier.

public bool Contains (string id);
override this.Contains : string -> bool
Public Function Contains (id As String) As Boolean

Parameters

id
String

The identifier of the DataSource to be located.

Returns

True, if the specified DataSource is found in the collection, otherwise, false.

Exceptions

The specified id is a null reference (Nothing in Visual Basic).

Applies to