PerspectiveMeasureGroupCollection.Insert 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
Insert(Int32, PerspectiveMeasureGroup) |
Inserts the specified PerspectiveMeasureGroup to the collection at the specified index. |
Insert(Int32, String) |
Creates a new PerspectiveMeasureGroup object using the specified MeasureGroupID, inserts it to the collection at the specified index and returns the new PerspectiveMeasureGroup created. |
Insert(Int32, PerspectiveMeasureGroup)
Inserts the specified PerspectiveMeasureGroup to the collection at the specified index.
public void Insert (int index, Microsoft.AnalysisServices.PerspectiveMeasureGroup item);
override this.Insert : int * Microsoft.AnalysisServices.PerspectiveMeasureGroup -> unit
Public Sub Insert (index As Integer, item As PerspectiveMeasureGroup)
Parameters
- index
- Int32
The zero-based index at which the PerspectiveMeasureGroup is inserted.
The PerspectiveMeasureGroup to be inserted.
Exceptions
The specified index is not a valid value (less than zero or bigger then the total number of elements).
- 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 compatibility-level of the specified PerspectiveMeasureGroup is not valid in the collection.
Applies to
Insert(Int32, String)
Creates a new PerspectiveMeasureGroup object using the specified MeasureGroupID, inserts it to the collection at the specified index and returns the new PerspectiveMeasureGroup created.
public Microsoft.AnalysisServices.PerspectiveMeasureGroup Insert (int index, string measureGroupId);
override this.Insert : int * string -> Microsoft.AnalysisServices.PerspectiveMeasureGroup
Public Function Insert (index As Integer, measureGroupId As String) As PerspectiveMeasureGroup
Parameters
- index
- Int32
The zero-based index at which the PerspectiveMeasureGroup is inserted.
- measureGroupId
- String
The MeasureGroupID for the new PerspectiveMeasureGroup object.
Returns
The newly created PerspectiveMeasureGroup object.
Exceptions
The specified index is not a valid value (less than zero or bigger then the total number of elements).
The specified MeasureGroupID is not valid in the collection.