WSHttpBindingBase.IBindingRuntimePreferences.ReceiveSynchronously WSHttpBindingBase.IBindingRuntimePreferences.ReceiveSynchronously WSHttpBindingBase.IBindingRuntimePreferences.ReceiveSynchronously Property

Definition

Ruft einen Wert ab, der angibt, ob eingehende Anforderungen synchron oder asynchron gehandhabt werden.Gets a value that indicates whether incoming requests are handled synchronously or asynchronously.

property bool System::ServiceModel::Channels::IBindingRuntimePreferences::ReceiveSynchronously { bool get(); };
bool System.ServiceModel.Channels.IBindingRuntimePreferences.ReceiveSynchronously { get; }
 ReadOnly Property ReceiveSynchronously As Boolean Implements IBindingRuntimePreferences.ReceiveSynchronously

Eigenschaftswert

true, wenn Anforderungen synchron gehandhabt werden; false, wenn sie asynchron gehandhabt werden.true if requests are handled synchronously; false if handled asynchronously. Der Standardwert ist false, Anforderungen werden in diesem Fall asynchron gehandhabt.The default is false, to handle requests asynchronously.

Implementiert

Beispiele

Dieses Beispiel zeigt die Verwendung des ReceiveSynchronously-Members.This example shows how to use the ReceiveSynchronously member.

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

Gilt für: