WSDualHttpBinding.IBindingRuntimePreferences.ReceiveSynchronously 属性

定义

获取一个值,该值指示是同步处理传入请求还是异步处理传入请求。

property bool System::ServiceModel::Channels::IBindingRuntimePreferences::ReceiveSynchronously { bool get(); };
bool System.ServiceModel.Channels.IBindingRuntimePreferences.ReceiveSynchronously { get; }
member this.System.ServiceModel.Channels.IBindingRuntimePreferences.ReceiveSynchronously : bool
 ReadOnly Property ReceiveSynchronously As Boolean Implements IBindingRuntimePreferences.ReceiveSynchronously

属性值

Boolean

如果同步处理请求,则为 true;如果异步处理请求,则为 false。 返回的值始终为 false,以异步处理请求。

实现

示例

下面的示例演示如何获取 IBindingRuntimePreferences.ReceiveSynchronously 值。

public class TcpChunkingBinding : IBindingRuntimePreferences
{
Public Class TcpChunkingBinding
    Implements IBindingRuntimePreferences
TcpChunkingBinding tcb = new TcpChunkingBinding();
bool isSynchronous = tcb.ReceiveSynchronously;
Dim tcb As New TcpChunkingBinding()
Dim isSynchronous As Boolean = tcb.ReceiveSynchronously

注解

使用服务模型行为,可以更改此值。

适用于