MetadataBuilder.SetCapacity 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| SetCapacity(HeapIndex, Int32) | 
						 设置指定堆的容量。  | 
        	
| SetCapacity(TableIndex, Int32) | 
						 设置指定表的容量。  | 
        	
SetCapacity(HeapIndex, Int32)
- Source:
 - MetadataBuilder.Heaps.cs
 
- Source:
 - MetadataBuilder.Heaps.cs
 
- Source:
 - MetadataBuilder.Heaps.cs
 
- Source:
 - MetadataBuilder.Heaps.cs
 
- Source:
 - MetadataBuilder.Heaps.cs
 
- Source:
 - 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
 
字节数。
例外
注解
如果提前知道大致字节数,请使用此方法减少分配。
适用于
SetCapacity(TableIndex, Int32)
- Source:
 - MetadataBuilder.Tables.cs
 
- Source:
 - MetadataBuilder.Tables.cs
 
- Source:
 - MetadataBuilder.Tables.cs
 
- Source:
 - MetadataBuilder.Tables.cs
 
- Source:
 - MetadataBuilder.Tables.cs
 
- Source:
 - 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
 
表中的行数。
例外
注解
如果提前知道大致行数,请使用此方法减少分配。