Partilhar via


PerspectiveDimensionCollection.Add Method

Definition

Overloads

Add(PerspectiveDimension)

Adds the specified PerspectiveDimension to the end of the collection.

Add(String)

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

Add(PerspectiveDimension)

Adds the specified PerspectiveDimension to the end of the collection.

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

Parameters

Returns

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

Applies to

Add(String)

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

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

Parameters

cubeDimensionId
String

The CubeDimensionID for the new PerspectiveDimension object.

Returns

The newly created PerspectiveDimension object.

Exceptions

The specified CubeDimensionID is not valid in the collection.

Applies to