語言

MetadataBuilder.SetCapacity 方法

定義

多載

名稱 Description
SetCapacity(HeapIndex, Int32)

設定指定堆積的容量。

SetCapacity(TableIndex, Int32)

設定指定資料表的容量。

SetCapacity(HeapIndex, Int32)

來源:
MetadataBuilder.Heaps.cs
來源:
MetadataBuilder.Heaps.cs
來源:
MetadataBuilder.Heaps.cs
來源:
MetadataBuilder.Heaps.cs
來源:
MetadataBuilder.Heaps.cs
來源:
MetadataBuilder.Heaps.cs
來源:
MetadataBuilder.Heaps.cs
來源:
MetadataBuilder.Heaps.cs

設定指定堆積的容量。

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)

參數

heap
HeapIndex

堆積索引。

byteCount
Int32

位元組的數量。

例外狀況

heap 不是一個有效的堆積索引。

-或-

byteCount 為負數。

備註

如果事先已知大約的位元組數,使用此方法來減少分配。

適用於

SetCapacity(TableIndex, Int32)

來源:
MetadataBuilder.Tables.cs
來源:
MetadataBuilder.Tables.cs
來源:
MetadataBuilder.Tables.cs
來源:
MetadataBuilder.Tables.cs
來源:
MetadataBuilder.Tables.cs
來源:
MetadataBuilder.Tables.cs
來源:
MetadataBuilder.Tables.cs
來源:
MetadataBuilder.Tables.cs

設定指定資料表的容量。

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)

參數

table
TableIndex

表格索引。

rowCount
Int32

表格中的列數。

例外狀況

table 不是有效的表格索引。

-或-

rowCount 為負數。

備註

如果事先知道大致的列數,使用此方法來減少分配。

適用於