Partager via


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.

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

Valeur de propriété

true si les demandes sont contrôlées de manière synchrone ; false en cas de gestion asynchrone. La valeur par défaut est false et permet de gérer les demandes de façon asynchrone.

Implémente

Exemples

Cet exemple montre comment utiliser le membre 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

S’applique à