XmlSerializationReader.EnsureArrayIndex(Array, Int32, Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确保给定数组或副本足够大,足以包含指定的索引。
此 API 支持产品基础结构,不能在代码中直接使用。
protected:
Array ^ EnsureArrayIndex(Array ^ a, int index, Type ^ elementType);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")]
protected Array EnsureArrayIndex(Array? a, int index, Type elementType);
protected Array EnsureArrayIndex(Array? a, int index, Type elementType);
protected Array EnsureArrayIndex(Array a, int index, Type elementType);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("XML serializer relies on dynamic code generation which is not available with Ahead of Time compilation")>]
member this.EnsureArrayIndex : Array * int * Type -> Array
member this.EnsureArrayIndex : Array * int * Type -> Array
Protected Function EnsureArrayIndex (a As Array, index As Integer, elementType As Type) As Array
参数
- index
- Int32
所需的索引。
返回
如果现有 Array数组已足够大,则为现有数组;否则为包含原始数组元素的新较大数组。
- 属性
注解
XmlSerializationReader的受保护成员仅供在 .NET Framework XML 序列化基础结构内部使用的派生类使用。