Compartilhar via


WSHttpBindingBase.IBindingRuntimePreferences.ReceiveSynchronously Propriedade

Definição

Obtém um valor que indica se as solicitações de entrada são tratadas de forma síncrona ou assíncrona.

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

Valor da propriedade

Boolean

true se as solicitações forem tratadas de forma síncrona; false se tratado de forma assíncrona. O padrão é falsemanipular solicitações de forma assíncrona.

Implementações

Exemplos

Este exemplo mostra como usar o 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

Aplica-se a