Share via


ModelComponentCollection.Add Method (String, IModelComponent)

 

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
)
protected:
int Add(
    String^ key,
    IModelComponent^ item
)
member Add : 
        key:string *
        item:IModelComponent -> int
Protected Function Add (
    key As String,
    item As IModelComponent
) As Integer

Parameters

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