次の方法で共有


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

例外がスローされたことを表す場合は true。それ以外の場合は false

属性

注釈

メソッドで RuntimeHelpers.CleanupCode デリゲートを ExecuteCodeWithGuaranteedCleanup 使用します。

拡張メソッド

名前 説明
GetMethodInfo(Delegate)

指定したデリゲートによって表されるメソッドを表すオブジェクトを取得します。

適用対象