WeakReference<T> Construtores
Definição
Inicializa uma nova instância da classe WeakReference<T>.Initializes a new instance of the WeakReference<T> class.
Sobrecargas
| WeakReference<T>(T) |
Inicializa uma nova instância da classe WeakReference<T> que referencia o objeto especificado.Initializes a new instance of the WeakReference<T> class that references the specified object. |
| WeakReference<T>(T, Boolean) |
Inicializa uma nova instância da classe WeakReference<T> que referencia o objeto especificado e que usa o acompanhamento de ressurreição especificado.Initializes a new instance of the WeakReference<T> class that references the specified object and uses the specified resurrection tracking. |
WeakReference<T>(T)
Inicializa uma nova instância da classe WeakReference<T> que referencia o objeto especificado.Initializes a new instance of the WeakReference<T> class that references the specified object.
public:
WeakReference(T target);
public WeakReference (T target);
new WeakReference<'T (requires 'T : null)> : 'T -> WeakReference<'T (requires 'T : null)>
Public Sub New (target As T)
Parâmetros
- target
- T
O objeto a ser referenciado ou null.The object to reference, or null.
Aplica-se a
WeakReference<T>(T, Boolean)
Inicializa uma nova instância da classe WeakReference<T> que referencia o objeto especificado e que usa o acompanhamento de ressurreição especificado.Initializes a new instance of the WeakReference<T> class that references the specified object and uses the specified resurrection tracking.
public:
WeakReference(T target, bool trackResurrection);
public WeakReference (T target, bool trackResurrection);
new WeakReference<'T (requires 'T : null)> : 'T * bool -> WeakReference<'T (requires 'T : null)>
Public Sub New (target As T, trackResurrection As Boolean)
Parâmetros
- target
- T
O objeto a ser referenciado ou null.The object to reference, or null.
- trackResurrection
- Boolean
true para acompanhar o objeto após a finalização; false para acompanhar o objeto somente até a finalização.true to track the object after finalization; false to track the object only until finalization.