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

属性值

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

示例

此示例演示如何获取可靠会话绑定的属性。

OptionalReliableSession reliableSession =
binding1.ReliableSession;
Dim reliableSession As OptionalReliableSession = binding1.ReliableSession

注解

使用 WSHttpBindingBase(Boolean) 构造函数可启用可靠会话。

适用于