Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WeakEvent<TEventHandler, TEventArgs> Members

In This Article
Provides access to a mechanism used to manage events in a way that prevents memory leaks caused by strong references between event publishers and subscribers.

#Constructors

Name Description
WeakEvent() Initializes a new instance of the WeakEvent<TEventHandler, TEventArgs> class.
WeakEvent(Int32) Initializes a new instance of the WeakEvent<TEventHandler, TEventArgs> class with specified settings.

#Methods
Show Inherited Hide Inherited

Name Description
Add(TEventHandler) Adds the event handler to the WeakEvent<TEventHandler, TEventArgs> instance.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from System.Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from System.Object.
GetHashCode() Serves as the default hash function. Inherited from System.Object.
GetType() Gets the Type of the current instance. Inherited from System.Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from System.Object.
Raise(Object, TEventArgs) Occurs the event that notifies all registered handlers with specified sender and event arguments.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from System.Object.
Remove(TEventHandler) Removes an event handler from the WeakEvent<TEventHandler, TEventArgs> instance.
ToString() Returns a string that represents the current object. Inherited from System.Object.
See Also