MeasureGroupDimensionCollection.Add Method

Definition

Overloads

Add(MeasureGroupDimension)

Adds the specified MeasureGroupDimension to the end of the collection.

Add(String)

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

Add(MeasureGroupDimension)

Adds the specified MeasureGroupDimension to the end of the collection.

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

Parameters

Returns

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

Applies to

Add(String)

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

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

Parameters

cubeDimensionId
String

The CubeDimensionID for the new MeasureGroupDimension object.

Returns

The newly created MeasureGroupDimension object.

Exceptions

The specified CubeDimensionID is not valid in the collection.

Applies to