共用方式為


NetTcpBinding.ReliableSession 屬性

定義

取得物件,這個物件表示是否在通道端點之間建立可靠的工作階段。

public:
 property System::ServiceModel::OptionalReliableSession ^ ReliableSession { System::ServiceModel::OptionalReliableSession ^ get(); void set(System::ServiceModel::OptionalReliableSession ^ value); };
public:
 property System::ServiceModel::OptionalReliableSession ^ ReliableSession { System::ServiceModel::OptionalReliableSession ^ get(); };
public System.ServiceModel.OptionalReliableSession ReliableSession { get; set; }
public System.ServiceModel.OptionalReliableSession ReliableSession { get; }
member this.ReliableSession : System.ServiceModel.OptionalReliableSession with get, set
member this.ReliableSession : System.ServiceModel.OptionalReliableSession
Public Property ReliableSession As OptionalReliableSession
Public ReadOnly Property ReliableSession As OptionalReliableSession

屬性值

OptionalReliableSession,表示是否在通道端點之間建立 WS-RM 可靠工作階段。 Enabled 的預設值為 false

範例

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

OptionalReliableSession reliableSession =
    binding.ReliableSession;

適用於