NetMsmqSecurityMode 列舉

定義

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

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

欄位

Both 3

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

Message 2

啟用 SOAP 安全性。

None 0

停用 MSMQ 傳輸安全性與 SOAP 安全性。

Transport 1

啟用 MSMQ 傳輸安全性。

範例

下列程式碼顯示如何指定 NetMsmqBinding 繫結的安全性模式。

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

備註

MSMQ 傳輸安全性可保護使用 MSMQ 的訊息。 SOAP 安全性可保護使用 WS-* 安全性協定的訊息。 此屬性決定傳輸安全性功能 (如完整性、機密性與驗證) 是由哪些機制取得。

適用於