次の方法で共有


MdxScriptCollection.Insert メソッド (Int32, String, String)

指定した名前および識別子の MdxScript を作成し、コレクション内の指定したインデックスに挿入します。

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

構文

'宣言
Public Function Insert ( _
    index As Integer, _
    name As String, _
    id As String _
) As MdxScript
'使用
Dim instance As MdxScriptCollection 
Dim index As Integer 
Dim name As String 
Dim id As String 
Dim returnValue As MdxScript 

returnValue = instance.Insert(index, name, _
    id)
public MdxScript Insert(
    int index,
    string name,
    string id
)
public:
MdxScript^ Insert(
    int index, 
    String^ name, 
    String^ id
)
member Insert : 
        index:int * 
        name:string * 
        id:string -> MdxScript
public function Insert(
    index : int, 
    name : String, 
    id : String
) : MdxScript

パラメーター

  • index
    型: System.Int32
    新しい MdxScript の挿入先である、0 から始まるインデックスです。

戻り値

型: Microsoft.AnalysisServices.MdxScript
新しい、空の MdxScript です。

例外

例外 条件
ArgumentOutOfRangeException

index に 0 より小さい値が指定されています。

-または-

index に [H:Microsoft.AnalysisServices.ModelComponentCollection.Count] 以上の値が指定されています。

関連項目

参照

MdxScriptCollection クラス

Insert オーバーロード

Microsoft.AnalysisServices 名前空間