CubeDimensionCollection.Add Method

Definition

Overloads

Add(CubeDimension)

Adds the specified CubeDimension to the end of the collection.

Add(String)

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

Add(String, String, String)

Creates a new CubeDimension object using the specified DimensionID, name and identifier, adds it to the end of the collection and returns the new CubeDimension created.

Add(CubeDimension)

Adds the specified CubeDimension to the end of the collection.

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

Parameters

item
CubeDimension

The CubeDimension to be added.

Returns

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

Applies to

Add(String)

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

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

Parameters

dimensionId
String

The DimensionID for the new CubeDimension object.

Returns

The newly created CubeDimension object.

Applies to

Add(String, String, String)

Creates a new CubeDimension object using the specified DimensionID, name and identifier, adds it to the end of the collection and returns the new CubeDimension created.

public Microsoft.AnalysisServices.CubeDimension Add (string dimensionId, string name, string id);
override this.Add : string * string * string -> Microsoft.AnalysisServices.CubeDimension
Public Function Add (dimensionId As String, name As String, id As String) As CubeDimension

Parameters

dimensionId
String

The DimensionID for the new CubeDimension object.

name
String

The Name for the new CubeDimension object.

id
String

The identifier for the new CubeDimension object.

Returns

The newly created CubeDimension object.

Exceptions

  • The specified name is not valid in the collection.
  • The specified identifier is not valid in the collection.

Applies to