WSDualHttpBinding.ReliableSession Właściwość

Definicja

Pobiera obiekt, który zapewnia wygodny dostęp do właściwości elementu powiązania niezawodnej sesji, który jest dostępny podczas korzystania z jednego z powiązań dostarczanych przez system.

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

Wartość właściwości

Zapewnia ReliableSession wygodny dostęp do właściwości elementu powiązania niezawodnej sesji, który jest dostępny podczas korzystania z jednego z powiązań dostarczanych przez system.

Przykłady

W poniższym przykładzie pokazano, jak uzyskać ReliableSession właściwość.

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

Uwagi

Wymagana jest niezawodna sesja dla usługi skonfigurowanej za pomocą polecenia WSDualHttpBinding.

Dotyczy