ModelComponentCollection.CanAdd Method (ModelComponent, String)

 

Applies To: SQL Server (starting with 2016)

Indicates whether the collection can add a ModelComponent.

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

Syntax

public virtual bool CanAdd(
    ModelComponent item,
    out string error
)
public:
virtual bool CanAdd(
    ModelComponent^ item,
    [OutAttribute] String^% error
)
abstract CanAdd : 
        item:ModelComponent *
        error:string byref -> bool
override CanAdd : 
        item:ModelComponent *
        error:string byref -> bool
Public Overridable Function CanAdd (
    item As ModelComponent,
    <OutAttribute> ByRef error As String
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if the collection can add a ModelComponent; otherwise, false.

See Also

ModelComponentCollection Class
Microsoft.AnalysisServices Namespace

Return to top