MetadataBuilder.SetCapacity 方法

定義

多載

SetCapacity(HeapIndex, Int32)

設定指定堆積的容量。

SetCapacity(TableIndex, Int32)

設定指定資料表的容量。

SetCapacity(HeapIndex, Int32)

來源:
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

設定指定資料表的容量。

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 為負。

備註

如果事先知道大約的數據列數目,請使用此方法來減少配置。

適用於