Bearbeiten

Freigeben über


WSDualHttpBinding.IBindingRuntimePreferences.ReceiveSynchronously Property

Definition

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

Property Value

true if requests are handled synchronously; false if handled asynchronously. The value returned is always is false, to handle requests asynchronously.

Implements

Examples

The following examples show how to get the IBindingRuntimePreferences.ReceiveSynchronously value.

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

Remarks

This value can be changed by using a service model behavior.

Applies to