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