GraphConditionCollection.CopyTo メソッド

特定のインデックスで始まらない呼び出す System.Array に System.Collections.Generic.ICollection の要素をコピーします。

名前空間:  Microsoft.VisualStudio.GraphModel.Styles
アセンブリ:  Microsoft.VisualStudio.GraphModel (Microsoft.VisualStudio.GraphModel.dll 内)

構文

'宣言
Public Sub CopyTo ( _
    array As GraphCondition(), _
    arrayIndex As Integer _
)
public void CopyTo(
    GraphCondition[] array,
    int arrayIndex
)
public:
virtual void CopyTo(
    array<GraphCondition^>^ array, 
    int arrayIndex
) sealed
abstract CopyTo : 
        array:GraphCondition[] * 
        arrayIndex:int -> unit 
override CopyTo : 
        array:GraphCondition[] * 
        arrayIndex:int -> unit 
public final function CopyTo(
    array : GraphCondition[], 
    arrayIndex : int
)

パラメーター

  • array
    型 : array<Microsoft.VisualStudio.GraphModel.Styles.GraphCondition[]
    System.Collections.Generic.ICollection からコピーされた要素のコピー先となる 1 次 System.Array。System.Array では 0 から始まるインデックスを使用する必要があります。
  • arrayIndex
    型 : System.Int32
    コピーの開始位置となる、配列の 0 から始まるインデックス。

実装

ICollection<T>.CopyTo(array<T[], Int32)

例外

例外 条件
ArgumentNullException

array が null です。

ArgumentOutOfRangeException

arrayIndex が 0 未満です。

ArgumentException

array は、多次元では、ソース System.Collections.Generic.ICollection の要素の数は arrayIndex から配置先の配列の末尾に使用できる領域よりも大きい、または T 型が代入先の配列の型に自動的にキャストできません。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

GraphConditionCollection クラス

Microsoft.VisualStudio.GraphModel.Styles 名前空間