WSDualHttpBinding.Security Свойство

Определение

Возвращает объект, указывающий параметры безопасности, используемые с этой привязкой.

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

Значение свойства

Значение WSDualHttpSecurity , указывающее параметры безопасности, используемые с привязкой. Значение WSDualHttpSecurityMode по умолчанию — Message.

Примеры

В следующем примере показано, как получить тип безопасности привязки.

WSDualHttpSecurity security = binding.Security;
Dim security As WSDualHttpSecurity = binding.Security

Комментарии

Двойная привязка предоставляет IP-адрес клиента службе. Клиент должен использовать безопасность, чтобы убедиться, что он подключается только к службам, которым он доверяет.

Применяется к