AggregationDesignDimensionCollection.Add Method

Definition

Overloads

Add(AggregationDesignDimension)

Adds the specified AggregationDesignDimension to the end of the collection.

Add(String)

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

Add(AggregationDesignDimension)

Adds the specified AggregationDesignDimension to the end of the collection.

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

Parameters

Returns

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

Applies to

Add(String)

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

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

Parameters

cubeDimensionId
String

The CubeDimensionID for the new AggregationDesignDimension object.

Returns

The newly created AggregationDesignDimension object.

Exceptions

The specified CubeDimensionID is not valid in the collection.

Applies to