NamedComponentCollection.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 override bool CanAdd(
ModelComponent item,
out string error
)
public:
virtual bool CanAdd(
ModelComponent^ item,
[OutAttribute] String^% error
) override
override CanAdd :
item:ModelComponent *
error:string byref -> bool
Public Overrides Function CanAdd (
item As ModelComponent,
<OutAttribute> ByRef error As String
) As Boolean
Parameters
item
Type: Microsoft.AnalysisServices.ModelComponentThe item to add.
error
Type: System.StringThe error that will occur if the collection can’t add a ModelComponent.
Return Value
Type: System.Boolean
The error that will occur if the collection can’t add a ModelComponent.
See Also
NamedComponentCollection Class
Microsoft.AnalysisServices Namespace
Return to top