RuntimeHelpers.CleanupCode Delegált

Definíció

Kivétel esetén futtatandó metódust jelöl.

public: delegate void RuntimeHelpers::CleanupCode(System::Object ^ userData, bool exceptionThrown);
public delegate void RuntimeHelpers.CleanupCode(object? userData, bool exceptionThrown);
[System.Security.SecurityCritical]
public delegate void RuntimeHelpers.CleanupCode(object userData, bool exceptionThrown);
public delegate void RuntimeHelpers.CleanupCode(object userData, bool exceptionThrown);
type RuntimeHelpers.CleanupCode = delegate of obj * bool -> unit
[<System.Security.SecurityCritical>]
type RuntimeHelpers.CleanupCode = delegate of obj * bool -> unit
Public Delegate Sub RuntimeHelpers.CleanupCode(userData As Object, exceptionThrown As Boolean)

Paraméterek

userData
Object

A meghatalmazottnak továbbítandó adatok.

exceptionThrown
Boolean

trueannak kifejezése, hogy kivétel történt; egyéb esetben. false

Attribútumok

Megjegyzések

Használja a RuntimeHelpers.CleanupCode delegáltat a ExecuteCodeWithGuaranteedCleanup metódussal.

Bővítő metódusok

Name Description
GetMethodInfo(Delegate)

Lekéri a megadott meghatalmazott által képviselt metódust képviselő objektumot.

A következőre érvényes: