MetadataBuilder.SetCapacity Méthode

Définition

Surcharges

SetCapacity(HeapIndex, Int32)

Définit la capacité du tas spécifié.

SetCapacity(TableIndex, Int32)

Définit la capacité de la table spécifiée.

SetCapacity(HeapIndex, Int32)

Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs
Source:
MetadataBuilder.Heaps.cs

Définit la capacité du tas spécifié.

public:
 void SetCapacity(System::Reflection::Metadata::Ecma335::HeapIndex heap, int byteCount);
public void SetCapacity (System.Reflection.Metadata.Ecma335.HeapIndex heap, int byteCount);
member this.SetCapacity : System.Reflection.Metadata.Ecma335.HeapIndex * int -> unit
Public Sub SetCapacity (heap As HeapIndex, byteCount As Integer)

Paramètres

heap
HeapIndex

Index du tas.

byteCount
Int32

Nombre d’octets.

Exceptions

heap n’est pas un index de segment de mémoire valide.

- ou -

byteCount est un nombre négatif.

Remarques

Utilisez cette méthode pour réduire les allocations si le nombre approximatif d’octets est connu à l’avance.

S’applique à

SetCapacity(TableIndex, Int32)

Source:
MetadataBuilder.Tables.cs
Source:
MetadataBuilder.Tables.cs
Source:
MetadataBuilder.Tables.cs

Définit la capacité de la table spécifiée.

public:
 void SetCapacity(System::Reflection::Metadata::Ecma335::TableIndex table, int rowCount);
public void SetCapacity (System.Reflection.Metadata.Ecma335.TableIndex table, int rowCount);
member this.SetCapacity : System.Reflection.Metadata.Ecma335.TableIndex * int -> unit
Public Sub SetCapacity (table As TableIndex, rowCount As Integer)

Paramètres

table
TableIndex

Index de la table.

rowCount
Int32

Nombre de lignes du tableau.

Exceptions

table n’est pas un index de table valide.

- ou -

rowCount est un nombre négatif.

Remarques

Utilisez cette méthode pour réduire les allocations si le nombre approximatif de lignes est connu à l’avance.

S’applique à