LevelCollection.Insert Method (Int32, String)

 

Updated: May 24, 2016

Creates and inserts a Level with the specified name into the collection at the specified index.

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

public Level Insert(
	int index,
	string name
)

Parameters

index
Type: System.Int32

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

name
Type: System.String

The name of the Level to be inserted.

Return Value

Type: Microsoft.AnalysisServices.Level

A new, empty Level.

Exception Condition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than Count.

Return to top
Show: