IOperationInvoker.IsSynchronous 属性

定义

获取一个值,该值指定调度程序是调用 Invoke(Object, Object[], Object[]) 方法还是调用 InvokeBegin(Object, Object[], AsyncCallback, Object) 方法。Gets a value that specifies whether the Invoke(Object, Object[], Object[]) or InvokeBegin(Object, Object[], AsyncCallback, Object) method is called by the dispatcher.

public:
 property bool IsSynchronous { bool get(); };
public bool IsSynchronous { get; }
member this.IsSynchronous : bool
Public ReadOnly Property IsSynchronous As Boolean

属性值

Boolean

如果调度程序调用同步操作,则为 true;否则为 falsetrue if the dispatcher invokes the synchronous operation; otherwise, false.

注解

默认情况下,默认的调用程序会将消息调度到同步操作。The default invoker dispatches messages to the synchronous operation by default. 该调度程序会缓存此值,因此在实现 IOperationInvoker 的对象的生存期内,此值不会改变。This value is cached by the dispatcher and therefore should not change over the lifetime of the object that implements IOperationInvoker.

适用于