語言

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 安全,以及啟用時所使用的認證模式與保護等級。

適用於