Language

WeakGCHandle<T>(T, Boolean) コンストラクター

定義

WeakGCHandle<T>の新しいインスタンスを初期化します。

public WeakGCHandle(T target, bool trackResurrection = false);
new System.Runtime.InteropServices.WeakGCHandle<'T (requires 'T : null)> : 'T * bool -> System.Runtime.InteropServices.WeakGCHandle<'T (requires 'T : null)>
Public Sub New (target As T, Optional trackResurrection As Boolean = false)

パラメーター

target
T

WeakGCHandle<T>を使用するオブジェクト。

trackResurrection
Boolean

true ファイナライザーでオブジェクトが復活したときにオブジェクトを追跡する場合。それ以外の場合は false。

適用対象