Table of Contents

Class MainLoopSynchronizationContext

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public sealed class MainLoopSynchronizationContext : SynchronizationContext
Inheritance
MainLoopSynchronizationContext
Inherited Members

Methods

CreateCopy()

When overridden in a derived class, creates a copy of the synchronization context.

public override SynchronizationContext CreateCopy()

Returns

SynchronizationContext

A new SynchronizationContext object.

Post(SendOrPostCallback, object?)

When overridden in a derived class, dispatches an asynchronous message to a synchronization context.

public override void Post(SendOrPostCallback d, object? state)

Parameters

d SendOrPostCallback

The SendOrPostCallback delegate to call.

state object

The object passed to the delegate.

Send(SendOrPostCallback, object?)

When overridden in a derived class, dispatches a synchronous message to a synchronization context.

public override void Send(SendOrPostCallback d, object? state)

Parameters

d SendOrPostCallback

The SendOrPostCallback delegate to call.

state object

The object passed to the delegate.

Exceptions

NotSupportedException

The method was called in a Windows Store app. The implementation of SynchronizationContext for Windows Store apps does not support the Send(SendOrPostCallback, object) method.