語言

NetMsmqSecurityElement.Mode 屬性

定義

取得或設定 NetMsmqSecurityMode 與 NetMsmqBinding 綁定相關的實例。

public:
 property System::ServiceModel::NetMsmqSecurityMode Mode { System::ServiceModel::NetMsmqSecurityMode get(); void set(System::ServiceModel::NetMsmqSecurityMode value); };
[System.Configuration.ConfigurationProperty("mode", DefaultValue=System.ServiceModel.NetMsmqSecurityMode.Transport)]
public System.ServiceModel.NetMsmqSecurityMode Mode { get; set; }
[<System.Configuration.ConfigurationProperty("mode", DefaultValue=System.ServiceModel.NetMsmqSecurityMode.Transport)>]
member this.Mode : System.ServiceModel.NetMsmqSecurityMode with get, set
Public Property Mode As NetMsmqSecurityMode

屬性值

NetMsmqSecurityMode與綁定相關NetMsmqBinding聯的實例。

屬性

備註

此性質決定了所對應 NetMsmqBinding的證券類型。 以下列表描述了可接受的數值:

  • None - 不會使用任何保全。

  • Transport - 將採用運輸安全措施。

  • Message - 將採用訊息式安全。

  • Both - 將同時使用訊息式安全與傳輸安全性。

適用於