Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NetNamedPipeBinding::IBindingRuntimePreferences::ReceiveSynchronously Property

 

Gets a value that indicates whether incoming requests are handled synchronously or asynchronously.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

private:
property bool ReceiveSynchronously {
	virtual bool get() sealed = IBindingRuntimePreferences::ReceiveSynchronously::get;
}

Property Value

Type: System::Boolean

false to indicate that the incoming requests are handled asynchronously.

The following example shows the part of the configuration file that contains the section for the NetNamedPipeBinding with values set to defaults.


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

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft