XmlSerializationReader.EnsureArrayIndex(Array, Int32, Type) 方法

定义

确保给定数组或副本足够大,足以包含指定的索引。

此 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

参数

a
Array

Array正在检查的项。

index
Int32

所需的索引。

elementType
Type

Type数组的元素。

返回

如果现有 Array数组已足够大,则为现有数组;否则为包含原始数组元素的新较大数组。

属性

注解

XmlSerializationReader的受保护成员仅供在 .NET Framework XML 序列化基础结构内部使用的派生类使用。

适用于