次の方法で共有


RegisteredServerCollection.CopyTo メソッド

1 次元の配列にオブジェクトのコレクションをコピーします。その際、指定したインデックス値からコピーを開始します。

名前空間:  Microsoft.SqlServer.Management.Smo.RegisteredServers
アセンブリ:  Microsoft.SqlServer.SmoExtended (Microsoft.SqlServer.SmoExtended.dll)

構文

'宣言
Public Sub CopyTo ( _
    array As Array, _
    index As Integer _
)
'使用
Dim instance As RegisteredServerCollection 
Dim array As Array 
Dim index As Integer

instance.CopyTo(array, index)
public void CopyTo(
    Array array,
    int index
)
public:
virtual void CopyTo(
    Array^ array, 
    int index
) sealed
abstract CopyTo : 
        array:Array * 
        index:int -> unit  
override CopyTo : 
        array:Array * 
        index:int -> unit
public final function CopyTo(
    array : Array, 
    index : int
)

パラメーター

  • index
    型: System.Int32
    コレクション内のコピーを開始するインデックス値を示す Int32 値です。

実装

ICollection.CopyTo(Array, Int32)

使用例

コレクションの使用

関連項目

参照

RegisteredServerCollection クラス

Microsoft.SqlServer.Management.Smo.RegisteredServers 名前空間

その他の技術情報

コレクションの使用