NamedComponentCollection.CanAdd 方法

此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。

Indicates whether the collection can add a ModelComponent.

命名空间:  Microsoft.AnalysisServices
程序集:  Microsoft.AnalysisServices(在 Microsoft.AnalysisServices.dll 中)

语法

声明
Public Overrides Function CanAdd ( _
    item As ModelComponent, _
    <OutAttribute> ByRef error As String _
) As Boolean
用法
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

参数

返回值

类型:System.Boolean
The error that will occur if the collection can’t add a ModelComponent.

请参阅

参考

NamedComponentCollection 类

Microsoft.AnalysisServices 命名空间