Partager via


Méthode ModelComponentCollection.CanAdd

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

Indicates whether the collection can add a ModelComponent.

Espace de noms :  Microsoft.AnalysisServices
Assembly :  Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)

Syntaxe

'Déclaration
Public Overridable Function CanAdd ( _
    item As ModelComponent, _
    <OutAttribute> ByRef error As String _
) As Boolean
'Utilisation
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

Paramètres

Valeur de retour

Type : System.Boolean
true if the collection can add a ModelComponent; otherwise, false.

Voir aussi

Référence

ModelComponentCollection Classe

Espace de noms Microsoft.AnalysisServices