ModelComponentCollection.Add 方法

定义

重载

Add(ModelComponent)

向 ModelComponentCollection 添加 ModelComponent 对象。

Add(ModelComponent, Boolean)

向 ModelComponentCollection 添加 ModelComponent 对象。

Add(String, IModelComponent)

向 ModelComponentCollection 添加 IModelComponent 对象。

Add(String, IModelComponent, Boolean)

向 ModelComponentCollection 添加 IModelComponent 对象。

Add(ModelComponent)

向 ModelComponentCollection 添加 ModelComponent 对象。

protected internal virtual int Add (Microsoft.AnalysisServices.ModelComponent item);
abstract member Add : Microsoft.AnalysisServices.ModelComponent -> int
override this.Add : Microsoft.AnalysisServices.ModelComponent -> int
Protected Friend Overridable Function Add (item As ModelComponent) As Integer

参数

item
ModelComponent

要添加的项。

返回

添加到集合的项的索引。

适用于

Add(ModelComponent, Boolean)

向 ModelComponentCollection 添加 ModelComponent 对象。

protected internal virtual int Add (Microsoft.AnalysisServices.ModelComponent item, bool updateDependents);
abstract member Add : Microsoft.AnalysisServices.ModelComponent * bool -> int
override this.Add : Microsoft.AnalysisServices.ModelComponent * bool -> int
Protected Friend Overridable Function Add (item As ModelComponent, updateDependents As Boolean) As Integer

参数

item
ModelComponent

要添加的项。

updateDependents
Boolean

指示是否更新依赖关系。

返回

添加到集合的项的索引。

适用于

Add(String, IModelComponent)

向 ModelComponentCollection 添加 IModelComponent 对象。

protected int Add (string key, Microsoft.AnalysisServices.IModelComponent item);
member this.Add : string * Microsoft.AnalysisServices.IModelComponent -> int
Protected Function Add (key As String, item As IModelComponent) As Integer

参数

key
String

键。

item
IModelComponent

要添加的项。

返回

添加到集合的项的索引。

适用于

Add(String, IModelComponent, Boolean)

向 ModelComponentCollection 添加 IModelComponent 对象。

protected int Add (string key, Microsoft.AnalysisServices.IModelComponent item, bool updateDependents);
member this.Add : string * Microsoft.AnalysisServices.IModelComponent * bool -> int
Protected Function Add (key As String, item As IModelComponent, updateDependents As Boolean) As Integer

参数

key
String

键。

item
IModelComponent

要添加的项。

updateDependents
Boolean

指示是否更新依赖关系。

返回

添加到集合的项的索引。

适用于