WeakReference<T> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the WeakReference<T> class.
Overloads
WeakReference<T>(T) |
Initializes a new instance of the WeakReference<T> class that references the specified object. |
WeakReference<T>(T, Boolean) |
Initializes a new instance of the WeakReference<T> class that references the specified object and uses the specified resurrection tracking. |
WeakReference<T>(T)
- Source:
- WeakReference.T.cs
- Source:
- WeakReference.T.cs
- Source:
- WeakReference.T.cs
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)
Parameters
- target
- T
The object to reference, or null
.
Applies to
WeakReference<T>(T, Boolean)
- Source:
- WeakReference.T.cs
- Source:
- WeakReference.T.cs
- Source:
- WeakReference.T.cs
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)
Parameters
- target
- T
The object to reference, or null
.
- trackResurrection
- Boolean
true
to track the object after finalization; false
to track the object only until finalization.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示