KpiCollection.Insert Method (Int32, String)

 

Updated: May 24, 2016

Creates and inserts a Kpi, with the specified 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
)

Parameters

index
Type: System.Int32

The zero-based index at which the new Kpi will be inserted.

name
Type: System.String

The name of the Kpi to be inserted.

Return Value

Type: Microsoft.AnalysisServices.Kpi

A new, empty Kpi.

Exception Condition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than Count.

Return to top
Show: