Export (0) Print
Expand All

KpiCollection.Insert Method (Int32, String, String)

Creates and inserts a Kpi, with the specified name and identifier, into the collection at the specified index.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

public Kpi Insert(
	int index,
	string name,
	string id
)

Parameters

index
Type: Int32
The zero-based index at which the new Kpi will be inserted.
name
Type: String
The name of the Kpi to be inserted.
id
Type: String
The identifier of the Kpi to be inserted.

Return Value

Type: Microsoft.AnalysisServices.Kpi
A new, empty Kpi.

ExceptionCondition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than Count.

Community Additions

ADD
Show:
© 2014 Microsoft