ResourceDictionary.CopyTo(DictionaryEntry[], Int32) 方法

定义

ResourceDictionary 元素复制到位于指定索引处的一维 DictionaryEntry 中。Copies the ResourceDictionary elements to a one-dimensional DictionaryEntry at the specified index.

public:
 void CopyTo(cli::array <System::Collections::DictionaryEntry> ^ array, int arrayIndex);
public void CopyTo (System.Collections.DictionaryEntry[] array, int arrayIndex);
member this.CopyTo : System.Collections.DictionaryEntry[] * int -> unit
Public Sub CopyTo (array As DictionaryEntry(), arrayIndex As Integer)

参数

array
DictionaryEntry[]

一维数组,该数组作为从 DictionaryEntry 实例复制的 ResourceDictionary 对象的目标。The one-dimensional array that is the destination of the DictionaryEntry objects copied from the ResourceDictionary instance. 该数组的索引必须从零开始。The array must have zero-based indexing.

arrayIndex
Int32

array 中从零开始的索引,这是开始复制的位置。The zero-based index of array where copying begins.

注解

这只会复制基本字典。This copies only the base dictionary. 如果重建数组再次成为 ResourceDictionary,则结果数组将没有 MergedDictionariesThe result array will have no MergedDictionaries if it is reconstituted to be a ResourceDictionary again.

适用于