다음을 통해 공유


PerspectiveMeasureCollection.Add Method

Definition

Overloads

Add(PerspectiveMeasure)

Adds the specified PerspectiveMeasure to the end of the collection.

Add(String)

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

Add(PerspectiveMeasure)

Adds the specified PerspectiveMeasure to the end of the collection.

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

Parameters

item
PerspectiveMeasure

The PerspectiveMeasure to be added.

Returns

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

Applies to

Add(String)

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

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

Parameters

measureId
String

The MeasureID for the new PerspectiveMeasure object.

Returns

The newly created PerspectiveMeasure object.

Exceptions

The specified MeasureID is not valid in the collection.

Applies to