次の方法で共有


RuleCollection.CopyTo メソッド

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

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

構文

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

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

パラメーター

  • index
    型: System.Int32
    コレクション内のコピー開始位置を示す Int32 値です。

使用例

コレクションの使用

関連項目

参照

RuleCollection クラス

Microsoft.SqlServer.Management.Smo 名前空間