Represents a weak reference, which references an object while still allowing that object to be deleted.
More...
#include <weak_reference.h>
Inherits WeakReference< System::Object >.
Represents a weak reference, which references an object while still allowing that object to be deleted.
◆ WeakReference() [1/4]
System::WeakReference<>::WeakReference |
( |
| ) |
|
|
inline |
◆ WeakReference() [2/4]
System::WeakReference<>::WeakReference |
( |
std::nullptr_t |
| ) |
|
|
inline |
Constructor from nullptr.
◆ WeakReference() [3/4]
System::WeakReference<>::WeakReference |
( |
const SmartPtr< Object > & |
data | ) |
|
|
inline |
Initializes a new instance of the WeakReference class, referencing the specified object.
- Parameters
-
◆ WeakReference() [4/4]
System::WeakReference<>::WeakReference |
( |
const SmartPtr< Object > & |
data, |
|
|
bool |
trackResurrection |
|
) |
| |
|
inline |
Initializes a new instance of the WeakReference class, referencing the specified object.
- Parameters
-
data | Object to store. |
trackResurrection | Ignored. |
◆ get_IsAlive()
Gets an indication whether the object referenced by the current WeakReference object has been deleted.
- Returns
- True if object is not expired, false otherwise.
◆ get_Target()
Gets the object (the target) referenced by the current WeakReference object.
- Returns
- Object referenced by the current WeakReference object.
◆ set_Target()
Sets the object (the target) referenced by the current WeakReference object.
- Parameters
-