Partilhar via


ModelComponentCollection.CanAdd(ModelComponent, String) Method

Definition

Indicates whether the collection can add a ModelComponent.

public virtual bool CanAdd (Microsoft.AnalysisServices.ModelComponent item, out string error);
abstract member CanAdd : Microsoft.AnalysisServices.ModelComponent * string -> bool
override this.CanAdd : Microsoft.AnalysisServices.ModelComponent * string -> bool
Public Overridable Function CanAdd (item As ModelComponent, ByRef error As String) As Boolean

Parameters

item
ModelComponent

The item to add.

error
String

The error that will occur if the collection can’t add a ModelComponent.

Returns

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

Applies to