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;

适用于