PersonalizationDictionary.CopyTo(DictionaryEntry[], Int32) 方法
定义
将个性化设置字典状态项作为 DictionaryEntry 实例复制到指定数组。Copies the personalization dictionary state entries as DictionaryEntry instances into the specified array.
public:
virtual void CopyTo(cli::array <System::Collections::DictionaryEntry> ^ array, int index);
public virtual void CopyTo (System.Collections.DictionaryEntry[] array, int index);
abstract member CopyTo : System.Collections.DictionaryEntry[] * int -> unit
override this.CopyTo : System.Collections.DictionaryEntry[] * int -> unit
Public Overridable Sub CopyTo (array As DictionaryEntry(), index As Integer)
参数
- array
- DictionaryEntry[]
DictionaryEntry 实例被复制到的数组。The array the DictionaryEntry instances are copied into.
- index
- Int32
开始复制的索引位置。The index location at which to begin copying.
例外
array 是多维的。array is multidimensional.
- 或 --or-
根据 array 参数,index 的大小有误。array is the wrong size based on the index parameter.
- 或 --or-
array 的容量不足以保存个性化设置字典中所包含的值。array has insufficient capacity to hold the values contained in the personalization dictionary.
array 为 null。array is null.
index 小于零。index is less than zero.
注解
使用此方法可以 DictionaryEntry 从个性化设置字典中的状态项创建实例的数组。Use this method to create an array of DictionaryEntry instances from the state entries in the personalization dictionary.