WSDualHttpBinding.IBindingRuntimePreferences.ReceiveSynchronously 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,這個值會指出要以同步或非同步方式處理傳入要求。
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
,這樣會以非同步方式處理要求。
實作
範例
下列範例會示範如何取得 IBindingRuntimePreferences.ReceiveSynchronously 值。
public class TcpChunkingBinding : IBindingRuntimePreferences
{
Public Class TcpChunkingBinding
Implements IBindingRuntimePreferences
TcpChunkingBinding tcb = new TcpChunkingBinding();
bool isSynchronous = tcb.ReceiveSynchronously;
Dim tcb As New TcpChunkingBinding()
Dim isSynchronous As Boolean = tcb.ReceiveSynchronously
備註
您可以使用服務模型行為變更此值。