Share via


ModelComponentCollection.CanAdd Method

This API supports the infrastructure and is not intended to be used directly from your code.

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

Syntax

'Declaration
Public Overridable Function CanAdd ( _
    item As ModelComponent, _
    <OutAttribute> ByRef error As String _
) As Boolean
'Usage
Dim instance As ModelComponentCollection
Dim item As ModelComponent
Dim error As String
Dim returnValue As Boolean

returnValue = instance.CanAdd(item, error)
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 function CanAdd(
    item : ModelComponent, 
    error : String
) : boolean

Parameters

Return Value

Type: System.Boolean