DelegatingJoinableTaskFactory.PostToUnderlyingSynchronizationContext Method
Posts a message to the specified underlying SynchronizationContext for processing when the main thread is freely available.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Protected Friend Overrides Sub PostToUnderlyingSynchronizationContext ( _
callback As SendOrPostCallback, _
state As Object _
)
protected internal override void PostToUnderlyingSynchronizationContext(
SendOrPostCallback callback,
Object state
)
protected public:
virtual void PostToUnderlyingSynchronizationContext(
SendOrPostCallback^ callback,
Object^ state
) override
abstract PostToUnderlyingSynchronizationContext :
callback:SendOrPostCallback *
state:Object -> unit
override PostToUnderlyingSynchronizationContext :
callback:SendOrPostCallback *
state:Object -> unit
override function PostToUnderlyingSynchronizationContext(
callback : SendOrPostCallback,
state : Object
)
Parameters
callback
Type: System.Threading.SendOrPostCallbackThe callback to invoke.
state
Type: System.ObjectThe state to pass to the callback.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.