Прочетете на английски Редактиране

Споделяне чрез


PortablePdbBuilder Constructor

Definition

Creates a builder of a Portable PDB image.

C#
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);
C#
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);

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

Продукт Версии
.NET Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)