Share via


ScriptObject.Dispatcher Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets an instance of the dispatcher.

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

Syntax

'Declaration
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)> _
Public ReadOnly Property Dispatcher As Dispatcher
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public Dispatcher Dispatcher { get; }

Property Value

Type: System.Windows.Threading.Dispatcher
The dispatcher associated with the user interface (UI) thread.

Remarks

The Silverlight plug-in instance is controlled by a single user interface (UI) thread.

This property returns an instance of the dispatcher that can be used to dispatch property and method invocations to the ScriptObject instance from a non-UI thread.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.