WSDualHttpBinding.ReliableSession 属性

定义

获取一个对象,当使用系统提供的一个绑定时,该对象可提供对可用的可靠会话绑定元素属性的便捷访问。

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

属性值

ReliableSession,当使用系统提供的一个绑定时,可提供对可用的可靠会话绑定元素属性的便捷访问。

示例

下面的示例演示如何获取 ReliableSession 属性。

ReliableSession reliableSession =
    binding.ReliableSession;
Dim reliableSession As ReliableSession = binding.ReliableSession

注解

采用 WSDualHttpBinding 配置的服务要求使用可靠会话。

适用于