MajorObjectCollection.Add Method (ModelComponent)

Adds a ModelComponent to the end of the MajorObjectCollection.

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

Syntax

'Declaration
Protected Friend Overrides Function Add ( _
    item As ModelComponent _
) As Integer
'Usage
Dim item As ModelComponent 
Dim returnValue As Integer 

returnValue = Me.Add(item)
protected internal override int Add(
    ModelComponent item
)
protected public:
virtual int Add(
    ModelComponent^ item
) override
abstract Add : 
        item:ModelComponent -> int  
override Add : 
        item:ModelComponent -> int
override function Add(
    item : ModelComponent
) : int

Parameters

Return Value

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

Remarks

If item does not implement IMajorObject, an error occurs.

See Also

Reference

MajorObjectCollection Class

Add Overload

Microsoft.AnalysisServices Namespace