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
protected internal override int Add (
ModelComponent item
)
protected public:
virtual int Add (
ModelComponent^ item
) override
protected int Add (
ModelComponent item
)
protected internal override function Add (
item : ModelComponent
) : int
Parameters
- item
The ModelComponent to add.
Return Value
The MajorObjectCollection index at which the item has been added.
Remarks
If item does not implement IMajorObject, an error occurs.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
MajorObjectCollection Class
MajorObjectCollection Members
Microsoft.AnalysisServices Namespace