Edit

Share via


PersistedAssemblyBuilder Constructor

Definition

Creates a PersistedAssemblyBuilder instance that can be saved to a file or stream.

public PersistedAssemblyBuilder (System.Reflection.AssemblyName name, System.Reflection.Assembly coreAssembly, System.Collections.Generic.IEnumerable<System.Reflection.Emit.CustomAttributeBuilder>? assemblyAttributes = default);
new System.Reflection.Emit.PersistedAssemblyBuilder : System.Reflection.AssemblyName * System.Reflection.Assembly * seq<System.Reflection.Emit.CustomAttributeBuilder> -> System.Reflection.Emit.PersistedAssemblyBuilder
Public Sub New (name As AssemblyName, coreAssembly As Assembly, Optional assemblyAttributes As IEnumerable(Of CustomAttributeBuilder) = Nothing)

Parameters

name
AssemblyName

The name of the assembly.

coreAssembly
Assembly

The assembly that denotes the "system assembly" that houses the well-known types such as Object

assemblyAttributes
IEnumerable<CustomAttributeBuilder>

A collection that contains the attributes of the assembly.

Exceptions

The name or name.Name.Name or coreAssembly is null.

Remarks

Currently the persisted assembly doesn't support running. You must save it and load it back to run.

Applies to