AggregationInstanceDimensionCollection.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(AggregationInstanceDimension) |
Adds the specified AggregationInstanceDimension to the end of the collection. |
Add(String) |
Creates a new AggregationInstanceDimension object using the specified CubeDimensionID, adds it to the end of the collection and returns the new AggregationInstanceDimension created. |
Add(AggregationInstanceDimension)
Adds the specified AggregationInstanceDimension to the end of the collection.
public int Add (Microsoft.AnalysisServices.AggregationInstanceDimension item);
override this.Add : Microsoft.AnalysisServices.AggregationInstanceDimension -> int
Public Function Add (item As AggregationInstanceDimension) As Integer
Parameters
The AggregationInstanceDimension to be added.
Returns
The zero-based index at which the AggregationInstanceDimension 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 AggregationInstanceDimension is not valid in the collection.
- The name of the specified AggregationInstanceDimension is not valid in the collection.
- The compatibility-level of the specified AggregationInstanceDimension is not valid in the collection.
Applies to
Add(String)
Creates a new AggregationInstanceDimension object using the specified CubeDimensionID, adds it to the end of the collection and returns the new AggregationInstanceDimension created.
public Microsoft.AnalysisServices.AggregationInstanceDimension Add (string cubeDimensionId);
override this.Add : string -> Microsoft.AnalysisServices.AggregationInstanceDimension
Public Function Add (cubeDimensionId As String) As AggregationInstanceDimension
Parameters
- cubeDimensionId
- String
The CubeDimensionID for the new AggregationInstanceDimension object.
Returns
The newly created AggregationInstanceDimension object.
Exceptions
The specified CubeDimensionID is not valid in the collection.