We recommend using Visual Studio 2017

MajorObjectCollection.Add Method (ModelComponent)

Adds a ModelComponent to the end of the MajorObjectCollection.

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

protected internal override int Add(
	ModelComponent item

Return Value

Type: System.Int32
The MajorObjectCollection index at which the item has been added.

If item does not implement IMajorObject, an error occurs.

Community Additions