WeakEventManager Methods

WeakEventManager Methods

 

Namespace:   System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

NameDescription
System_CAPS_pubmethodCheckAccess()

Determines whether the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

System_CAPS_protmethodDeliverEvent(Object, EventArgs)

Delivers the event being managed to each listener.

System_CAPS_protmethodDeliverEventToList(Object, EventArgs, WeakEventManager.ListenerList)

Delivers the event being managed to each listener in the provided list.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_protmethodSystem_CAPS_staticGetCurrentManager(Type)

Returns the WeakEventManager implementation that is used for the provided type.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodNewListenerList()

Returns a new object to contain listeners to an event.

System_CAPS_protmethodProtectedAddHandler(Object, Delegate)

Adds the specified delegate as an event handler of the specified source.

System_CAPS_protmethodProtectedAddListener(Object, IWeakEventListener)

Adds the provided listener to the provided source for the event being managed.

System_CAPS_protmethodProtectedRemoveHandler(Object, Delegate)

Removes the previously added handler from the specified source.

System_CAPS_protmethodProtectedRemoveListener(Object, IWeakEventListener)

Removes a previously added listener from the provided source.

System_CAPS_protmethodPurge(Object, Object, Boolean)

Removes inactive listener entries from the data list for the provided source. Returns true if some entries were actually removed from the list.

System_CAPS_protmethodRemove(Object)

Removes all listeners for the specified source.

System_CAPS_protmethodScheduleCleanup()

Requests that a purge of unused entries in the underlying listener list be performed on a lower priority thread.

System_CAPS_protmethodSystem_CAPS_staticSetCurrentManager(Type, WeakEventManager)

Sets the current manager for the specified manager type.

System_CAPS_protmethodStartListening(Object)

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.

System_CAPS_protmethodStopListening(Object)

When overridden in a derived class, stops listening on the provided source for the event being managed.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodVerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

Return to top
Show:
© 2016 Microsoft