แก้ไข

แชร์ผ่าน


WSHttpBindingBase.ReliableSession Property

Definition

Gets an object that provides convenient access to the properties of a reliable session binding element that are available when using one of the system-provided bindings.

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

Property Value

The ReliableSession that provides convenient access to the properties of a reliable session binding element that are available when using one of the system-provided bindings.

Examples

This example shows how to get the properties of a reliable session binding.

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

Remarks

Reliable sessions are enabled with the WSHttpBindingBase(Boolean) constructor.

Applies to