Partager via


JoinableTaskFactory.PostToUnderlyingSynchronizationContext Method

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)

Syntax

'Declaration
Protected Friend Overridable Sub PostToUnderlyingSynchronizationContext ( _
    callback As SendOrPostCallback, _
    state As Object _
)
protected internal virtual void PostToUnderlyingSynchronizationContext(
    SendOrPostCallback callback,
    Object state
)
protected public:
virtual void PostToUnderlyingSynchronizationContext(
    SendOrPostCallback^ callback, 
    Object^ state
)
abstract PostToUnderlyingSynchronizationContext : 
        callback:SendOrPostCallback * 
        state:Object -> unit  
override PostToUnderlyingSynchronizationContext : 
        callback:SendOrPostCallback * 
        state:Object -> unit
function PostToUnderlyingSynchronizationContext(
    callback : SendOrPostCallback, 
    state : Object
)

Parameters

.NET Framework Security

See Also

Reference

JoinableTaskFactory Class

Microsoft.VisualStudio.Threading Namespace