Export (0) Print
Expand All

WeakEventManager Methods

The WeakEventManager type exposes the following members.

  Name Description
Public method CheckAccess Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Protected method DeliverEvent Delivers the event being managed to each listener.
Protected method DeliverEventToList Delivers the event being managed to each listener in the provided list.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method Static member GetCurrentManager Returns the WeakEventManager implementation that is used for the provided type.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method NewListenerList Returns a new object to contain listeners to an event.
Protected method ProtectedAddHandler Adds the specified delegate as an event handler of the specified source.
Protected method ProtectedAddListener Adds the provided listener to the provided source for the event being managed.
Protected method ProtectedRemoveHandler Removes the previously added handler from the specified source.
Protected method ProtectedRemoveListener Removes a previously added listener from the provided source.
Protected method Purge Removes inactive listener entries from the data list for the provided source. Returns true if some entries were actually removed from the list.
Protected method Remove Removes all listeners for the specified source.
Protected method ScheduleCleanup Requests that a purge of unused entries in the underlying listener list be performed on a lower priority thread.
Protected method Static member SetCurrentManager Sets the current manager for the specified manager type.
Protected method StartListening When overridden in a derived class, starts listening for the event being managed. After the StartListening method is first called, the manager should be in the state of calling DeliverEvent or DeliverEventToList whenever the relevant event from the provided source is handled.
Protected method StopListening When overridden in a derived class, stops listening on the provided source for the event being managed.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method VerifyAccess Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top
Show:
© 2014 Microsoft