次の方法で共有


ModelComponentCollection.Add メソッド (String, IModelComponent)

この API は、SQL Server 2012 インフラストラクチャをサポートします。独自に作成したコードから直接使用するためのものではありません。

ModelComponentCollectionIModelComponent オブジェクトを追加します。

名前空間:  Microsoft.AnalysisServices
アセンブリ:  Microsoft.AnalysisServices (Microsoft.AnalysisServices.dll)

構文

'宣言
Protected Function Add ( _
    key As String, _
    item As IModelComponent _
) As Integer
'使用
Dim key As String 
Dim item As IModelComponent 
Dim returnValue As Integer 

returnValue = Me.Add(key, item)
protected int Add(
    string key,
    IModelComponent item
)
protected:
int Add(
    String^ key, 
    IModelComponent^ item
)
member Add : 
        key:string * 
        item:IModelComponent -> int
protected function Add(
    key : String, 
    item : IModelComponent
) : int

パラメーター

戻り値

型: System.Int32
コレクションに追加されたアイテムです。

関連項目

参照

ModelComponentCollection クラス

Add オーバーロード

Microsoft.AnalysisServices 名前空間