語言

NetMsmqSecurity.Mode 屬性

定義

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

public:
 property System::ServiceModel::NetMsmqSecurityMode Mode { System::ServiceModel::NetMsmqSecurityMode get(); void set(System::ServiceModel::NetMsmqSecurityMode value); };
public System.ServiceModel.NetMsmqSecurityMode Mode { get; set; }
member this.Mode : System.ServiceModel.NetMsmqSecurityMode with get, set
Public Property Mode As NetMsmqSecurityMode

屬性值

NetMsmqSecurityMode那個是和NetMsmqBinding綁定有關的。

例外狀況

價值不是價值的結合 NetMsmqSecurityMode 。

範例

NetMsmqSecurityMode secMode = security.Mode;
Dim secMode = security.Mode

備註

此特性決定了相關 NetMsmqBinding 所使用的安全性類型。 以下列表描述了可接受的數值:

  • 沒有 ——沒有使用任何安全措施。

  • 交通 ——交通安全被使用。

  • 採用訊息-基於訊息的安全機制。

  • 兩者皆 採用訊息式安全與傳輸安全。

適用於