DispatcherFactory.GetDispatcherForWindowsDispatcher Method |
Gets an implementation of the IDispatcher interface for a given
instance of the System.Windows.Threading.Dispatcher class.
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.5.21.0 (6.5.21.0)
C#
public static IDispatcher GetDispatcherForWindowsDispatcher( Object dispatcher )
Parameters
- dispatcher
- Type: System.Object
An instance of the System.Windows.Threading.Dispatcher class.
Return Value
Type: IDispatcherAn implementation of IDispatcher wrapping the functionality of dispatcher.
Throws PlatformNotSupportedException on platforms that don't support WPF.