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
)
參數
array
類型:array<Microsoft.VisualStudio.GraphModel.Styles.GraphCondition[]一維 System.Array,這是從 System.Collections.Generic.ICollection 中複製項目的目的地。 System.Array 必須有以零起始的索引。
arrayIndex
類型:Int32陣列中以零起始的索引,位於複製開始的位置。
實作
ICollection.CopyTo(UTP, Int32)
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | array 為 null。 |
ArgumentOutOfRangeException | arrayIndex 小於 0。 |
ArgumentException | array 是多維,或者項目數來源 System.Collections.Generic.ICollection 中的到目的 arrayIndex 末尾的可用陣列結尾,或者型別 T 無法自動轉換為目的陣列的型別。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。