Share via


ModelComponentCollection.Add Method (String, IModelComponent, Boolean)

 

Applies To: SQL Server (starting with 2016)

Adds a IModelComponent object to the ModelComponentCollection.

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

Syntax

protected int Add(
    string key,
    IModelComponent item,
    bool updateDependents
)
protected:
int Add(
    String^ key,
    IModelComponent^ item,
    bool updateDependents
)
member Add : 
        key:string *
        item:IModelComponent *
        updateDependents:bool -> int
Protected Function Add (
    key As String,
    item As IModelComponent,
    updateDependents As Boolean
) As Integer

Parameters

  • updateDependents
    Type: System.Boolean

    Indicates whether to update the dependents.

Return Value

Type: System.Int32

The item that is added to the collection.

See Also

Add Overload
ModelComponentCollection Class
Microsoft.AnalysisServices Namespace

Return to top