Udostępnij za pośrednictwem


NetNamedPipeBinding.IBindingRuntimePreferences.ReceiveSynchronously Właściwość

Definicja

Pobiera wartość wskazującą, czy żądania przychodzące są obsługiwane synchronicznie, czy asynchronicznie.

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

Wartość właściwości

Boolean

false aby wskazać, że żądania przychodzące są obsługiwane asynchronicznie.

Implementuje

Przykłady

W poniższym przykładzie pokazano część pliku konfiguracji zawierającą sekcję z NetNamedPipeBinding wartościami ustawionymi na wartości domyślne.


NetNamedPipeBinding binding = new NetNamedPipeBinding();
IBindingRuntimePreferences s  =
       binding.GetProperty<IBindingRuntimePreferences>
       (new BindingParameterCollection());
bool receiveSynchronously = s.ReceiveSynchronously;

Dotyczy