NetMsmqBinding.Security Свойство

Определение

Возвращает или задает связанный NetMsmqSecurity с этой привязкой объект.

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

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

Связанный NetMsmqSecurity с этой привязкой.

Примеры

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

NetMsmqBinding binding = new NetMsmqBinding();
    NetMsmqSecurity security = binding.Security;

Комментарии

NetMsmqSecurity — это инкапсуляция транспорта очереди сообщений (MSMQ) и безопасности SOAP. Он определяет, включена ли безопасность транспорта или SOAP, а если да, то какие режимы проверки подлинности и уровни защиты используются.

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