共用方式為


WSDualHttpSecurity.Message 屬性

定義

取得 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

MessageSecurityOverHttp 值。 預設值包括︰ClientCredentialTypeWindowsAlgorithmSuiteBasic256,以及 NegotiateServiceCredentialtrue

範例

下列程式碼示範如何透過存取此屬性,來設定 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 繫結的詳細訊息層級安全性屬性。

適用於