WSHttpBindingBase.IBindingRuntimePreferences.ReceiveSynchronously Vlastnost

Definice

Získá hodnotu, která označuje, zda příchozí požadavky jsou zpracovávány synchronně nebo asynchronně.

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

Hodnota vlastnosti

true pokud jsou žádosti zpracovávány synchronně; false pokud se zpracovává asynchronně. Výchozí hodnota je false, která zpracovává požadavky asynchronně.

Implementuje

Příklady

Tento příklad ukazuje, jak použít ReceiveSynchronously člen.

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

Platí pro