Método NamedComponentCollection.CanAdd
Essa API oferece suporte à infraestrutura do SQL Server 2012 e não se destina a ser usada diretamente no seu código.
Indicates whether the collection can add a ModelComponent.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (em Microsoft.AnalysisServices.dll)
Sintaxe
'Declaração
Public Overrides Function CanAdd ( _
item As ModelComponent, _
<OutAttribute> ByRef error As String _
) As Boolean
'Uso
Dim instance As NamedComponentCollection
Dim item As ModelComponent
Dim error As String
Dim returnValue As Boolean
returnValue = instance.CanAdd(item, error)
public override bool CanAdd(
ModelComponent item,
out string error
)
public:
virtual bool CanAdd(
ModelComponent^ item,
[OutAttribute] String^% error
) override
abstract CanAdd :
item:ModelComponent *
error:string byref -> bool
override CanAdd :
item:ModelComponent *
error:string byref -> bool
public override function CanAdd(
item : ModelComponent,
error : String
) : boolean
Parâmetros
- item
Tipo: Microsoft.AnalysisServices.ModelComponent
The item to add.
- error
Tipo: System.String%
The error that will occur if the collection can’t add a ModelComponent.
Valor de retorno
Tipo: System.Boolean
The error that will occur if the collection can’t add a ModelComponent.