Επεξεργασία

Κοινή χρήση μέσω


MetadataUpdater.ApplyUpdate Method

Definition

Updates the specified assembly using the provided metadata, IL, and PDB deltas.

public:
 static void ApplyUpdate(System::Reflection::Assembly ^ assembly, ReadOnlySpan<System::Byte> metadataDelta, ReadOnlySpan<System::Byte> ilDelta, ReadOnlySpan<System::Byte> pdbDelta);
public static void ApplyUpdate (System.Reflection.Assembly assembly, ReadOnlySpan<byte> metadataDelta, ReadOnlySpan<byte> ilDelta, ReadOnlySpan<byte> pdbDelta);
static member ApplyUpdate : System.Reflection.Assembly * ReadOnlySpan<byte> * ReadOnlySpan<byte> * ReadOnlySpan<byte> -> unit
Public Shared Sub ApplyUpdate (assembly As Assembly, metadataDelta As ReadOnlySpan(Of Byte), ilDelta As ReadOnlySpan(Of Byte), pdbDelta As ReadOnlySpan(Of Byte))

Parameters

assembly
Assembly

The assembly to update.

metadataDelta
ReadOnlySpan<Byte>

The metadata changes to be applied.

ilDelta
ReadOnlySpan<Byte>

The IL changes to be applied.

pdbDelta
ReadOnlySpan<Byte>

The PDB changes to be applied.

Exceptions

The assembly argument is not a runtime assembly.

The assembly argument is null.

The assembly is not editable.

The update could not be applied.

Remarks

Currently executing methods will continue to use the existing IL. New executions of modified methods will use the new IL. Different runtimes may have different limitations on what kinds of changes are supported, and runtimes make no guarantees as to the state of the assembly and process if the delta includes unsupported changes.

Applies to