WSHttpBindingBase.IBindingRuntimePreferences.ReceiveSynchronously Proprietà

Definizione

Ottiene un valore che indica se le richieste in entrata vengono gestite in modo sincrono o in modo asincrono.

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

Valore della proprietà

true se le richieste vengono gestite in modo sincrono; false se vengono gestite in modo asincrono. L'impostazione predefinita è false, per gestire le richieste in modo asincrono.

Implementazioni

Esempio

In questo esempio viene illustrato come utilizzare il membro ReceiveSynchronously.

static void SnippetReceiveSynchronously ()
{
    WSHttpBinding binding = new WSHttpBinding();
    IBindingRuntimePreferences s  =
                       binding.GetProperty<IBindingRuntimePreferences>
                       (new BindingParameterCollection());
    bool receiveSynchronously = s.ReceiveSynchronously;
}
Private Shared Sub SnippetReceiveSynchronously()
    Dim binding As New WSHttpBinding()
    Dim s As IBindingRuntimePreferences = binding.GetProperty(Of IBindingRuntimePreferences) (New BindingParameterCollection())
        Dim receiveSynchronously = s.ReceiveSynchronously

End Sub

Si applica a