Represents the Dispatcher when it is in a disable state and provides a means to re-enable dispatcher processing.
Assembly: WindowsBase (in WindowsBase.dll)
Re-enables dispatcher processing.
Determines whether the specified ValueType.Equals(Object).)object is equal to this object.(Overrides
Gets a hash code for this instance. (Overrides ValueType.GetHashCode().)
Returns the fully qualified type name of this instance.(Inherited from ValueType.)
Determines whether twoobjects are equal.
Determines whether twoobjects are not equal.
DisableProcessing returns a object when it is called.
Disabling dispatcher processing is an advanced method that is intended to eliminate the chance of unrelated reentrancy.
The effects of disabling processing are as follows:
CLR locks will not pump messages internally.
DispatcherFrame objects are not allowed to be pushed.
Message processing is not permitted.
Calling Dispose on the object will re-enable dispatcher processing.
Legacy Code Example
The following example shows how to disable dispatcher processing and re-enable dispatcher processing. DisableProcessing is called in a using statement. DisableProcessing returns a structure which is used as the object to be disposed when the using block finishes. Calling Dispose on the structure re-enables dispatcher processing.Code snippet is not found. Confirm that the code snippet name 'DispatcherSnippets' is correct.
Available since 3.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.