WSHttpBindingBase.IBindingRuntimePreferences.ReceiveSynchronously Propriété

Définition

Obtient une valeur qui indique si les demandes entrantes sont gérées de façon synchrone ou asynchrone.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; }
System.ServiceModel.Channels.IBindingRuntimePreferences.ReceiveSynchronously
 ReadOnly Property ReceiveSynchronously As Boolean Implements IBindingRuntimePreferences.ReceiveSynchronously

Valeur de propriété

true si les demandes sont contrôlées de manière synchrone ; false en cas de gestion asynchrone.true if requests are handled synchronously; false if handled asynchronously. La valeur par défaut est false et permet de gérer les demandes de façon asynchrone.The default is false, to handle requests asynchronously.

Implémente

Exemples

Cet exemple montre comment utiliser le membre ReceiveSynchronously.This example shows how to use the ReceiveSynchronously member.

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

S’applique à