次の方法で共有


LevelCollection.Move メソッド (String, Int32)

指定した識別子の Level を、コレクション内の指定したインデックスに移動します。

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

構文

'宣言
Public Function Move ( _
    id As String, _
    toIndex As Integer _
) As Level
'使用
Dim instance As LevelCollection 
Dim id As String 
Dim toIndex As Integer 
Dim returnValue As Level 

returnValue = instance.Move(id, toIndex)
public Level Move(
    string id,
    int toIndex
)
public:
Level^ Move(
    String^ id, 
    int toIndex
)
member Move : 
        id:string * 
        toIndex:int -> Level
public function Move(
    id : String, 
    toIndex : int
) : Level

パラメーター

  • toIndex
    型: System.Int32
    id で指定した Level の移動先である、0 から始まるインデックスです。

戻り値

型: Microsoft.AnalysisServices.Level
移動する Level です。

例外

例外 条件
ArgumentOutOfRangeException

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

-または-

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

-または-

id がコレクションに含まれていません。

関連項目

参照

LevelCollection クラス

Move オーバーロード

Microsoft.AnalysisServices 名前空間