Insert Method (Int32, String, String)

HierarchyCollection.Insert Method (Int32, String, String)

 

Applies To: SQL Server (starting with 2016)

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

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

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

Parameters

index
Type: System.Int32

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

name
Type: System.String

The name of the Hierarchy to be inserted.

id
Type: System.String

The identifier of the Hierarchy to be inserted.

Return Value

Type: Microsoft.AnalysisServices.Hierarchy

A new, empty Hierarchy.

Exception Condition
ArgumentOutOfRangeException

index is less than zero.-or-index is equal to or greater than Count.

Return to top
Show:
© 2016 Microsoft