Aracılığıyla paylaş


CubeAttributeCollection.Add Method

Definition

Overloads

Add(CubeAttribute)

Adds the specified CubeAttribute to the end of the collection.

Add(String)

Creates a new CubeAttribute object using the specified AttributeID, adds it to the end of the collection and returns the new CubeAttribute created.

Add(CubeAttribute)

Adds the specified CubeAttribute to the end of the collection.

public int Add (Microsoft.AnalysisServices.CubeAttribute item);
override this.Add : Microsoft.AnalysisServices.CubeAttribute -> int
Public Function Add (item As CubeAttribute) As Integer

Parameters

item
CubeAttribute

The CubeAttribute to be added.

Returns

The zero-based index at which the CubeAttribute has been added to the collection.

Exceptions

  • The specified item is a null reference (Nothing in Visual Basic).
  • The specified item already esists in the collection.
  • The AttributeID of the specified CubeAttribute is not valid in the collection.
  • The name of the specified CubeAttribute is not valid in the collection.
  • The compatibility-level of the specified CubeAttribute is not valid in the collection.

Applies to

Add(String)

Creates a new CubeAttribute object using the specified AttributeID, adds it to the end of the collection and returns the new CubeAttribute created.

public Microsoft.AnalysisServices.CubeAttribute Add (string attributeId);
override this.Add : string -> Microsoft.AnalysisServices.CubeAttribute
Public Function Add (attributeId As String) As CubeAttribute

Parameters

attributeId
String

The AttributeID for the new CubeAttribute object.

Returns

The newly created CubeAttribute object.

Exceptions

The specified AttributeID is not valid in the collection.

Applies to