AggregationInstanceMeasureCollection.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Add(AggregationInstanceMeasure) |
Adds the specified AggregationInstanceMeasure to the end of the collection. |
Add(String) |
Creates a new AggregationInstanceMeasure object using the specified MeasureID, adds it to the end of the collection and returns the new AggregationInstanceMeasure created. |
Add(AggregationInstanceMeasure)
Adds the specified AggregationInstanceMeasure to the end of the collection.
public int Add (Microsoft.AnalysisServices.AggregationInstanceMeasure item);
override this.Add : Microsoft.AnalysisServices.AggregationInstanceMeasure -> int
Public Function Add (item As AggregationInstanceMeasure) As Integer
Parameters
The AggregationInstanceMeasure to be added.
Returns
The zero-based index at which the AggregationInstanceMeasure 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 AggregationInstanceMeasure is not valid in the collection.
- The name of the specified AggregationInstanceMeasure is not valid in the collection.
- The compatibility-level of the specified AggregationInstanceMeasure is not valid in the collection.
Applies to
Add(String)
Creates a new AggregationInstanceMeasure object using the specified MeasureID, adds it to the end of the collection and returns the new AggregationInstanceMeasure created.
public Microsoft.AnalysisServices.AggregationInstanceMeasure Add (string measureId);
override this.Add : string -> Microsoft.AnalysisServices.AggregationInstanceMeasure
Public Function Add (measureId As String) As AggregationInstanceMeasure
Parameters
- measureId
- String
The MeasureID for the new AggregationInstanceMeasure object.
Returns
The newly created AggregationInstanceMeasure object.
Exceptions
The specified MeasureID is not valid in the collection.