Share via


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 が負の値です。

注釈

行のおおよその数が事前にわかっている場合は、この方法を使用して割り当てを減らします。

適用対象