次の方法で共有


DataSourceCollection.Move メソッド

定義

オーバーロード

Move(DataSource, Int32)

指定した DataSource をコレクション内の新しい位置に移動します。

Move(Int32, Int32)

DataSource をコレクション内の現在の位置から新しい位置に移動します。

Move(String, Int32)

指定した識別子を持つ DataSource をコレクション内の新しい位置に移動します。

Move(DataSource, Int32)

指定した DataSource をコレクション内の新しい位置に移動します。

public void Move (Microsoft.AnalysisServices.DataSource item, int toIndex);
override this.Move : Microsoft.AnalysisServices.DataSource * int -> unit
Public Sub Move (item As DataSource, toIndex As Integer)

パラメーター

item
DataSource

移動する DataSource です。

toIndex
Int32

指定した DataSource の移動先である、0 から始まるインデックスです。

例外

  • 指定された DataSource がコレクションに存在しません。
  • 指定された toIndex が有効な値ではありません (0 より小さいか、要素の合計数より大きい)。

適用対象

Move(Int32, Int32)

DataSource をコレクション内の現在の位置から新しい位置に移動します。

public Microsoft.AnalysisServices.DataSource Move (int fromIndex, int toIndex);
override this.Move : int * int -> Microsoft.AnalysisServices.DataSource
Public Function Move (fromIndex As Integer, toIndex As Integer) As DataSource

パラメーター

fromIndex
Int32

移動する DataSource の、0 から始まるインデックスです。

toIndex
Int32

fromIndex で指定した DataSource の移動先である、0 から始まるインデックスです。

戻り値

移動された DataSource です。

例外

  • 指定された fromIndex が有効な値ではありません (0 より小さいか、要素の合計数より大きい)。
  • 指定された toIndex が有効な値ではありません (0 より小さいか、要素の合計数より大きい)。

適用対象

Move(String, Int32)

指定した識別子を持つ DataSource をコレクション内の新しい位置に移動します。

public Microsoft.AnalysisServices.DataSource Move (string id, int toIndex);
override this.Move : string * int -> Microsoft.AnalysisServices.DataSource
Public Function Move (id As String, toIndex As Integer) As DataSource

パラメーター

id
String

移動する DataSource の識別子です。

toIndex
Int32

fromIndex で指定した DataSource の移動先である、0 から始まるインデックスです。

戻り値

移動された DataSource です。

例外

  • id は、コレクション内の への DataSource 有効な識別子ではありません。
  • 指定された toIndex が有効な値ではありません (0 より小さいか、要素の合計数より大きい)。

適用対象