AggregationDimensionCollection.Add Method

Definition

Overloads

Add(AggregationDimension)

Adds the specified AggregationDimension to the end of the collection.

Add(String)

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

Add(AggregationDimension)

Adds the specified AggregationDimension to the end of the collection.

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

Parameters

Returns

The zero-based index at which the AggregationDimension 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 CubeDimensionID of the specified AggregationDimension is not valid in the collection.
  • The name of the specified AggregationDimension is not valid in the collection.
  • The compatibility-level of the specified AggregationDimension is not valid in the collection.

Applies to

Add(String)

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

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

Parameters

cubeDimensionId
String

The CubeDimensionID for the new AggregationDimension object.

Returns

The newly created AggregationDimension object.

Exceptions

The specified CubeDimensionID is not valid in the collection.

Applies to