BasicHttpBinding.IBindingRuntimePreferences.ReceiveSynchronously BasicHttpBinding.IBindingRuntimePreferences.ReceiveSynchronously BasicHttpBinding.IBindingRuntimePreferences.ReceiveSynchronously Property

定义

获取一个值,该值指示是同步处理传入请求还是异步处理传入请求。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; }
 ReadOnly Property ReceiveSynchronously As Boolean Implements IBindingRuntimePreferences.ReceiveSynchronously

属性值

总是为 falseAlways false.

实现

示例

此示例获取 ReceiveSynchronously 值。This example gets the ReceiveSynchronously value.

BasicHttpBinding binding = new BasicHttpBinding();
IBindingRuntimePreferences s = (binding as IBindingRuntimePreferences);
bool receiveSynchronously = s.ReceiveSynchronously;

适用于