Bewerken

Delen via


PortablePdbBuilder Constructor

Definition

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)

Parameters

tablesAndHeaps
MetadataBuilder

A builder populated with debug metadata entities stored in tables and values stored in heaps. 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. Each slot in the array corresponds to a table (TableIndex). The length of the array must be equal TableCount.

entryPoint
MethodDefinitionHandle

An entry point method definition handle.

idProvider
Func<IEnumerable<Blob>,BlobContentId>

A function that calculates the ID of content represented as a sequence of blobs. If not specified, a default function that ignores the content and returns a content ID based on the current time is used (GetTimeBasedProvider()). You must specify a deterministic function to produce a deterministic Portable PDB image.

Exceptions

tablesAndHeaps or typeSystemRowCounts is null.

Applies to