ModelComponentCollection.CanAdd 方法
此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。
Indicates whether the collection can add a ModelComponent.
命名空間: Microsoft.AnalysisServices
組件: Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)
語法
'宣告
Public Overridable Function CanAdd ( _
item As ModelComponent, _
<OutAttribute> ByRef error As String _
) As Boolean
'用途
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
參數
- item
型別:Microsoft.AnalysisServices.ModelComponent
The item to add.
- error
型別:System.String%
The error that will occur if the collection can’t add a ModelComponent.
傳回值
型別:System.Boolean
true if the collection can add a ModelComponent; otherwise, false.