WebHttpBinding.Security Свойство

Определение

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

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

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

Используется WebHttpSecurity с этой привязкой. Значение по умолчанию — None.

Комментарии

Чтобы использовать тип безопасности, отличный от по умолчанию, используйте WebHttpBinding(WebHttpSecurityMode) конструктор.

Note

Если вы задали это свойство TransportCredentialOnly и используете ПРОТОКОЛ HTTP, помните, что учетные данные отправляются по проводу в виде обычного текста.

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