NetMsmqSecurityMode 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
NetMsmqSecurityMode 列舉會指定 MSMQ 傳輸可使用的安全性模式。
public enum class NetMsmqSecurityMode
public enum NetMsmqSecurityMode
type NetMsmqSecurityMode =
Public Enum 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-* 安全性協定的訊息。 此屬性決定傳輸安全性功能 (如完整性、機密性與驗證) 是由哪些機制取得。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應