OrderedDictionary.CopyTo(Array, Int32) Метод
Определение
Копирует элементы коллекции OrderedDictionary в одномерный объект Array по указанному индексу.Copies the OrderedDictionary elements to a one-dimensional Array object at the specified index.
public:
virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)
Параметры
- array
- Array
Одномерный объект Array, который является конечным объектом для объектов DictionaryEntry, копируемых из коллекции OrderedDictionary.The one-dimensional Array object that is the destination of the DictionaryEntry objects copied from OrderedDictionary collection. Массив Array должен иметь индексацию, начинающуюся с нуля.The Array must have zero-based indexing.
- index
- Int32
Отсчитываемый от нуля индекс в массиве array
, указывающий начало копирования.The zero-based index in array
at which copying begins.
Реализации
Комментарии
CopyToМетод не гарантирует сохранение порядка элементов в OrderedDictionary коллекции.The CopyTo method is not guaranteed to preserve the order of the elements in the OrderedDictionary collection.