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

範例

下列程式碼示範如何取得 NetMsmqSecurity 物件。

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

備註

NetMsmqSecurity 是訊息佇列 (MSMQ) 傳輸和 SOAP 安全性的封裝。 它指定是否啟用傳輸或 SOAP 安全性,以及如果啟用,正在使用的驗證模式和保護層級。

適用於