ServerInstanceCollection.CopyTo メソッド

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

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

構文

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

instance.CopyTo(array, index)
public void CopyTo(
    ServerInstance[] array,
    int index
)
public:
void CopyTo(
    array<ServerInstance^>^ array, 
    int index
)
member CopyTo : 
        array:ServerInstance[] * 
        index:int -> unit
public function CopyTo(
    array : ServerInstance[], 
    index : int
)

パラメーター

  • index
    型: System.Int32
    コピーを開始するインデックス位置を示す Int32 値です。

関連項目

参照

ServerInstanceCollection クラス

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