Share via


MajorObjectCollection.Add Method (ModelComponent)

Adds a ModelComponent to the end of the MajorObjectCollection.

Espace de noms: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in microsoft.analysisservices.dll)

Syntaxe

'Déclaration
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

Paramètres

Valeur de retour

The MajorObjectCollection index at which the item has been added.

Notes

If item does not implement IMajorObject, an error occurs.

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

MajorObjectCollection Class
MajorObjectCollection Members
Microsoft.AnalysisServices Namespace