NetTcpBinding.IBindingRuntimePreferences.ReceiveSynchronously 属性

定义

获取一个值,该值指示是同步处理传入请求还是异步处理传入请求。Gets a value that indicates whether incoming requests are handled synchronously or asynchronously.

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

属性值

如果同步处理传入请求,则为 true;如果异步处理传入请求,则为 falsetrue if incoming requests are handled synchronously; false if incoming requests are handled asynchronously. 默认值为 falseThe default value is false.

实现

示例

此示例演示如何获取 TransferMode 值。This example shows how to get the TransferMode value.

    // P:System.ServiceModel.NetTcpBinding.System.ServiceModel.Channels.
// IBindingRuntimePreferences.ReceiveSynchronously
// Private, no example needed

注解

使用<synchronousReceive>可以更改在服务或客户端应用程序中接收消息的这一运行时行为。This run-time behavior for receiving messages in either a service or client application can be changed using <synchronousReceive>.

适用于