共用方式為


NetTcpBinding.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

實作

範例

這個範例會示範如何取得 TransferMode 值。

    // P:System.ServiceModel.NetTcpBinding.System.ServiceModel.Channels.
// IBindingRuntimePreferences.ReceiveSynchronously
// Private, no example needed

備註

您可以使用synchronousReceive > 變更 <此執行時間行為,以在服務或用戶端應用程式中接收訊息。

適用於