Open sandboxFocus

Method GetDispatcherForWindowsDispatcher

GetDispatcherForWindowsDispatcher(object)

Gets an implementation of the IDispatcher interface for a given instance of the System.Windows.Threading.Dispatcher class.

Declaration
public static IDispatcher GetDispatcherForWindowsDispatcher(object dispatcher)
Parameters
Type Name Description
object dispatcher

An instance of the System.Windows.Threading.Dispatcher class.

Returns
Type Description
IDispatcher

An implementation of IDispatcher wrapping the functionality of dispatcher.

Remarks

Throws PlatformNotSupportedException on platforms that don't support WPF.