Navigation :
WeakActionBase
Name |
Value |
Assembly |
Catel.Core |
Namespace |
Catel |
Available on |
.NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS |
public abstract class WeakActionBase : IWeakReference
Implements interfaces
IWeakReference
Base class for weak actions that contain weak targets.
Fields
Constructors
WeakActionBase(object target)
Initializes a new instance of the WeakActionBase class.
Parameters
Name |
Description |
target |
The target of the weak action. |
Exceptions
Name |
Description |
ArgumentException |
The target isnull or whitespace. |
Properties
IsTargetAlive
Gets a value indicating whether the event target has not yet been garbage collected.
In case of static event handlers, this property always returnsfalse
.
Target
Gets the target ornull
if the target is garbage collected.
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion