WSDualHttpSecurity.Message 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 WSDualHttpBinding 的訊息層級安全性屬性。
public:
property System::ServiceModel::MessageSecurityOverHttp ^ Message { System::ServiceModel::MessageSecurityOverHttp ^ get(); };
public:
property System::ServiceModel::MessageSecurityOverHttp ^ Message { System::ServiceModel::MessageSecurityOverHttp ^ get(); void set(System::ServiceModel::MessageSecurityOverHttp ^ value); };
public System.ServiceModel.MessageSecurityOverHttp Message { get; }
public System.ServiceModel.MessageSecurityOverHttp Message { get; set; }
member this.Message : System.ServiceModel.MessageSecurityOverHttp
member this.Message : System.ServiceModel.MessageSecurityOverHttp with get, set
Public ReadOnly Property Message As MessageSecurityOverHttp
Public Property Message As MessageSecurityOverHttp
屬性值
MessageSecurityOverHttp 值。 預設值包括︰ClientCredentialType 為 Windows、AlgorithmSuite 為 Basic256,以及 NegotiateServiceCredential 為 true
。
範例
下列程式碼示範如何透過存取此屬性,來設定 AlgorithmSuite 屬性。
WSDualHttpBinding binding3 = new WSDualHttpBinding();
binding3.Security.Mode = WSDualHttpSecurityMode.None;
binding3.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256;
binding3.MessageEncoding = WSMessageEncoding.Mtom;
Dim binding3 As New WSDualHttpBinding()
binding3.Security.Mode = WSDualHttpSecurityMode.None
binding3.Security.Message.AlgorithmSuite = SecurityAlgorithmSuite.Basic256
binding3.MessageEncoding = WSMessageEncoding.Mtom
備註
傳回的物件會指定 wsDualHttpBinding
繫結的詳細訊息層級安全性屬性。