Share via


WSHttpBindingBase.IBindingRuntimePreferences.ReceiveSynchronously プロパティ

定義

受信要求を同期処理するか、または非同期処理するかを示す値を取得します。

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

プロパティ値

要求が同期的に処理される場合は true。非同期的に処理される場合は false。 既定は false で、要求を非同期的に処理します。

実装

次の例は、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

適用対象