NetTcpBinding.Security Свойство

Определение

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

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

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

Свойство NetTcpSecurity, содержащее типы безопасности, используемые с этой привязкой. Режимом безопасности по умолчанию для привязки NetTCPBinding является Transport.

Примеры

В этом примере показано, как получить значение Security.

NetTcpSecurity security = binding.Security;

Комментарии

Свойство NetTcpSecurity предоставляет типы безопасности и параметры, доступные для привязки NetTcpBinding.

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