PortablePdbBuilder(MetadataBuilder, ImmutableArray<Int32>, MethodDefinitionHandle, Func<IEnumerable<Blob>,BlobContentId>) 构造函数
定义
创建可移植 PDB 映像的生成器。Creates a builder of a Portable PDB image.
public PortablePdbBuilder (System.Reflection.Metadata.Ecma335.MetadataBuilder tablesAndHeaps, System.Collections.Immutable.ImmutableArray<int> typeSystemRowCounts, System.Reflection.Metadata.MethodDefinitionHandle entryPoint, Func<System.Collections.Generic.IEnumerable<System.Reflection.Metadata.Blob>,System.Reflection.Metadata.BlobContentId>? idProvider = default);
public PortablePdbBuilder (System.Reflection.Metadata.Ecma335.MetadataBuilder tablesAndHeaps, System.Collections.Immutable.ImmutableArray<int> typeSystemRowCounts, System.Reflection.Metadata.MethodDefinitionHandle entryPoint, Func<System.Collections.Generic.IEnumerable<System.Reflection.Metadata.Blob>,System.Reflection.Metadata.BlobContentId> idProvider = default);
new System.Reflection.Metadata.Ecma335.PortablePdbBuilder : System.Reflection.Metadata.Ecma335.MetadataBuilder * System.Collections.Immutable.ImmutableArray<int> * System.Reflection.Metadata.MethodDefinitionHandle * Func<seq<System.Reflection.Metadata.Blob>, System.Reflection.Metadata.BlobContentId> -> System.Reflection.Metadata.Ecma335.PortablePdbBuilder
Public Sub New (tablesAndHeaps As MetadataBuilder, typeSystemRowCounts As ImmutableArray(Of Integer), entryPoint As MethodDefinitionHandle, Optional idProvider As Func(Of IEnumerable(Of Blob), BlobContentId) = Nothing)
参数
- tablesAndHeaps
- MetadataBuilder
用存储在表中的调试元数据实体和存储在堆中的值填充的生成器。A builder populated with debug metadata entities stored in tables and values stored in heaps. 序列化可移植 PDB 映像时,会枚举实体和值。The entities and values are enumerated when serializing the Portable PDB image.
- typeSystemRowCounts
- ImmutableArray<Int32>
关联的类型系统元数据所包含的所有表的行计数。The row counts of all tables that the associated type system metadata contain. 数组中的每个槽对应于一个表 (TableIndex)。Each slot in the array corresponds to a table (TableIndex). 数组的长度必须等于 TableCount。The length of the array must be equal TableCount.
- entryPoint
- MethodDefinitionHandle
入口点方法定义句柄。An entry point method definition handle.
- idProvider
- Func<IEnumerable<Blob>,BlobContentId>
计算以 Blob 序列表示的内容 ID 的函数。A function that calculates the ID of content represented as a sequence of blobs. 如果未指定,则使用默认函数,该函数将忽略内容并基于当前时间返回内容 ID (GetTimeBasedProvider())。If not specified, a default function that ignores the content and returns a content ID based on the current time is used (GetTimeBasedProvider()). 必须指定一个确定性函数以生成确定性可移植 PDB 映像。You must specify a deterministic function to produce a deterministic Portable PDB image.
例外
tablesAndHeaps 或 typeSystemRowCounts 为 null。tablesAndHeaps or typeSystemRowCounts is null.