共用方式為


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

屬性值

OptionalReliableSession

ReliableSession,可方便您存取可靠工作階段繫結項目的屬性,只要使用其中一個系統提供的繫結,就可以使用這些屬性。

範例

這個範例會示範如何取得可靠工作階段繫結的屬性。

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

備註

WSHttpBindingBase(Boolean) 建構函式啟用可靠工作階段。

適用於