DispatchRuntime.SynchronizationContext 属性
定义
获取或设置用于调用服务操作的同步上下文。Gets or sets the synchronization context that is used to invoke the service operations.
public:
property System::Threading::SynchronizationContext ^ SynchronizationContext { System::Threading::SynchronizationContext ^ get(); void set(System::Threading::SynchronizationContext ^ value); };
public System.Threading.SynchronizationContext SynchronizationContext { get; set; }
member this.SynchronizationContext : System.Threading.SynchronizationContext with get, set
Public Property SynchronizationContext As SynchronizationContext
属性值
用于确定对哪个线程调用服务操作的 SynchronizationContext 对象。The SynchronizationContext object used to determine on which thread the service operation is invoked.
注解
返回值可能为 null。The return value can be null. 如果此值不为 null,则此同步上下文用于对正确线程调用服务操作。If this value is not null, then this synchronization context is used to invoke the service operations on the correct thread.