Class Dispatcher
Provides the core event message dispatcher. Instances of this type are responsible for processing the window messages and dispatching the events to the client.
Inheritance
System.Object
Dispatcher
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Threading
Assembly: OpenSilver.dll
Syntax
public class Dispatcher
Constructors
| Improve this Doc View SourceDispatcher()
Declaration
public Dispatcher()
Methods
| Improve this Doc View SourceBeginInvoke(Action)
Executes the specified delegate asynchronously on the thread that the System.Windows.Threading.Dispatcher was created on.
Declaration
public DispatcherOperation BeginInvoke(Action method)
Parameters
Type | Name | Description |
---|---|---|
System.Action | method | The delegate to a method, which is pushed onto the System.Windows.Threading.Dispatcher event queue. |
Returns
Type | Description |
---|---|
DispatcherOperation |
BeginInvoke(Delegate, Object[])
Declaration
public DispatcherOperation BeginInvoke(Delegate d, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.Delegate | d | |
System.Object[] | args |
Returns
Type | Description |
---|---|
DispatcherOperation |
CheckAccess()
Declaration
public bool CheckAccess()
Returns
Type | Description |
---|---|
System.Boolean |
DisableProcessing()
Declaration
public IDisposable DisableProcessing()
Returns
Type | Description |
---|---|
System.IDisposable |
InvokeAsync(Action, DispatcherPriority)
Declaration
public DispatcherOperation InvokeAsync(Action callback, DispatcherPriority priority = DispatcherPriority.Normal)
Parameters
Type | Name | Description |
---|---|---|
System.Action | callback | |
DispatcherPriority | priority |
Returns
Type | Description |
---|---|
DispatcherOperation |