Compartir vía


WSHttpBindingBase.IBindingRuntimePreferences.ReceiveSynchronously Propiedad

Definición

Obtiene un valor que indica si las solicitudes de entrada se administran de forma sincrónica o asincrónica.

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 de propiedad

Boolean

true si se administran las solicitudes sincrónicamente; false si se administran de forma asincrónica. El valor predeterminado es false, administrar de forma asincrónica las solicitudes.

Implementaciones

Ejemplos

Este ejemplo muestra cómo utilizar el miembro 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

Se aplica a