PersistedAssemblyBuilder.GenerateMetadata Method

Definition

Overloads

GenerateMetadata(BlobBuilder, BlobBuilder)

Important

This API is not CLS-compliant.

Generates the metadata for the PersistedAssemblyBuilder.

C#
[System.CLSCompliant(false)]
public System.Reflection.Metadata.Ecma335.MetadataBuilder GenerateMetadata(out System.Reflection.Metadata.BlobBuilder ilStream, out System.Reflection.Metadata.BlobBuilder mappedFieldData);

Parameters

ilStream
BlobBuilder

When this method returns, contains the BlobBuilder bytes that includes all method's IL (body) emitted.

mappedFieldData
BlobBuilder

When this method returns, contains the BlobBuilder bytes that includes all field RVA data defined in the assembly.

Returns

A MetadataBuilder that includes all members defined in the Assembly.

Attributes

Exceptions

A module is not defined for the assembly.

The metadata was previously populated for the assembly.

Applies to

.NET 9
Product Versions
.NET 9

GenerateMetadata(BlobBuilder, BlobBuilder, MetadataBuilder)

Important

This API is not CLS-compliant.

Generates the metadata for the PersistedAssemblyBuilder.

C#
[System.CLSCompliant(false)]
public System.Reflection.Metadata.Ecma335.MetadataBuilder GenerateMetadata(out System.Reflection.Metadata.BlobBuilder ilStream, out System.Reflection.Metadata.BlobBuilder mappedFieldData, out System.Reflection.Metadata.Ecma335.MetadataBuilder pdbBuilder);

Parameters

ilStream
BlobBuilder

When this method returns, contains the BlobBuilder bytes that includes all method's IL (body) emitted.

mappedFieldData
BlobBuilder

When this method returns, contains the BlobBuilder bytes that includes all field RVA data defined in the assembly.

pdbBuilder
MetadataBuilder

When this method returns, contains the MetadataBuilder that includes PDB metadata.

Returns

A MetadataBuilder that includes all members defined in the Assembly.

Attributes

Exceptions

A module not defined for the assembly.

The metadata already populated for the assembly previously.

Applies to

.NET 9
Product Versions
.NET 9