語言

NetMsmqSecurityMode 列舉

定義

NetMsmqSecurityMode 列舉指定 MSMQ 傳輸可以使用的安全性模式。

public enum class NetMsmqSecurityMode
public enum NetMsmqSecurityMode
type NetMsmqSecurityMode = 
Public Enum NetMsmqSecurityMode
繼承
NetMsmqSecurityMode

欄位

名稱 值 Description
None 0

同時停用 MSMQ 傳輸安全與 SOAP 安全。

Transport 1

啟用 MSMQ 傳輸安全。

Message 2

啟用 SOAP 安全性。

Both 3

同時啟用 MSMQ 傳輸安全與 SOAP 安全。

範例

以下程式碼說明如何指定綁定的安全模式 NetMsmqBinding 。

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

備註

MSMQ 傳輸安全則是利用 MSMQ 來保護訊息。 SOAP 安全則使用 WS-* 安全協定來保護訊息。 此特性決定了傳輸安全功能(如完整性、機密性與認證)的獲取機制。

適用於