RuntimeHelpers.CleanupCode Delegato

Definizione

Rappresenta un metodo da eseguire quando si verifica un'eccezione.

C#
public delegate void RuntimeHelpers.CleanupCode(object? userData, bool exceptionThrown);
C#
[System.Security.SecurityCritical]
public delegate void RuntimeHelpers.CleanupCode(object userData, bool exceptionThrown);
C#
public delegate void RuntimeHelpers.CleanupCode(object userData, bool exceptionThrown);

Parametri

userData
Object

Dati da passare al delegato.

exceptionThrown
Boolean

true per indicare che si è verificata un'eccezione; in caso contrario, false.

Attributi

Commenti

Usare il delegato con il RuntimeHelpers.CleanupCodeExecuteCodeWithGuaranteedCleanup metodo .

Metodi di estensione

GetMethodInfo(Delegate)

Ottiene un oggetto che rappresenta il metodo rappresentato dal delegato specificato.

Si applica a

Prodotto Versioni
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1