共用方式為


GraphConditionCollection.CopyTo 方法

複製的項目至 System.Collections.Generic.ICollection System.Array,起始於特定 System.Array 索引。

命名空間:  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
)

參數

  • arrayIndex
    類型:Int32

    陣列中以零起始的索引,位於複製開始的位置。

實作

ICollection.CopyTo(UTP, Int32)

例外狀況

例外狀況 條件
ArgumentNullException

array 為 null。

ArgumentOutOfRangeException

arrayIndex 小於 0。

ArgumentException

array 是多維,或者項目數來源 System.Collections.Generic.ICollection 中的到目的 arrayIndex 末尾的可用陣列結尾,或者型別 T 無法自動轉換為目的陣列的型別。

.NET Framework 安全性

請參閱

參考

GraphConditionCollection 類別

Microsoft.VisualStudio.GraphModel.Styles 命名空間