Share via


CubeAttributeCollection.Contains Method

Definition

Overloads

Contains(CubeAttribute)

Indicates whether the collection contains the specified CubeAttribute.

Contains(String)

Indicates whether the collection contains a CubeAttribute with the specified AttributeID.

Contains(CubeAttribute)

Indicates whether the collection contains the specified CubeAttribute.

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

Parameters

item
CubeAttribute

The CubeAttribute to be located.

Returns

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

Applies to

Contains(String)

Indicates whether the collection contains a CubeAttribute with the specified AttributeID.

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

Parameters

attributeId
String

The AttributeID of the CubeAttribute to be located.

Returns

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

Exceptions

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

Applies to