CubeCollection.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
要加入的 ModelComponent。
- error
- String
如果集合無法加入指定的 ModelComponent ,就會發生此錯誤。
傳回
若集合可以新增 ModelComponent 則為 true;否則為 false。