JoinableTaskFactory::PostToUnderlyingSynchronizationContext Method (SendOrPostCallback^, Object^)

 

Posts a callback to the main thread via the underlying dispatcher, or to the threadpool when no dispatcher exists on the main thread.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

public protected:
virtual void PostToUnderlyingSynchronizationContext(
	SendOrPostCallback^ callback,
	Object^ state
)

Parameters

callback
Type: System.Threading::SendOrPostCallback^

The callback

state
Type: System::Object^

The state.

Return to top
Show: