XmlSerializationReader.EnsureArrayIndex(Array, Int32, Type) Metoda

Definice

Zajišťuje, že dané pole nebo kopie je dostatečně velké, aby obsahovalo zadaný index.

Toto rozhraní API podporuje produktovou infrastrukturu a není určené k použití přímo z uživatelského kódu.

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

Parametry

a
Array

Probíhá Array kontrola.

index
Int32

Požadovaný index.

elementType
Type

Prvky Type pole.

Návraty

ArrayExistující , pokud je již dostatečně velký; v opačném případě je nové, větší pole obsahující prvky původního pole.

Atributy

Poznámky

Chráněné členy XmlSerializationReader jsou určeny pouze odvozenými třídami, které se používají interně v rámci infrastruktury serializace XML rozhraní .NET Framework.

Platí pro