NamedComponentCollection.CanAdd(ModelComponent, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指出指定的 ModelComponent 是否可以新增至集合。
public override bool CanAdd (Microsoft.AnalysisServices.ModelComponent item, out string error);
override this.CanAdd : Microsoft.AnalysisServices.ModelComponent * string -> bool
Public Overrides Function CanAdd (item As ModelComponent, ByRef error As String) As Boolean
參數
- item
- ModelComponent
要新增的項目。
- error
- String
如果集合無法新增 ModelComponent,就會發生此錯誤。
傳回
表示元件是否可以新增至集合。