RuntimeHelpers.CleanupCode 대리자

정의

예외가 발생했을 때 실행할 메서드를 나타냅니다.

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)

매개 변수

userData
Object

대리자에 전달할 데이터입니다.

exceptionThrown
Boolean

예외가 throw되었음을 표시하려면 true이고, 그렇지 않으면 false입니다.

특성

설명

메서드와 RuntimeHelpers.CleanupCode 함께 대리자를 ExecuteCodeWithGuaranteedCleanup 사용합니다.

확장 메서드

GetMethodInfo(Delegate)

지정된 대리자가 나타내는 메서드를 나타내는 개체를 가져옵니다.

적용 대상