편집

다음을 통해 공유


WSHttpSecurity.Message Property

Definition

Gets the message-level security settings for this binding.

public:
 property System::ServiceModel::NonDualMessageSecurityOverHttp ^ Message { System::ServiceModel::NonDualMessageSecurityOverHttp ^ get(); void set(System::ServiceModel::NonDualMessageSecurityOverHttp ^ value); };
public:
 property System::ServiceModel::NonDualMessageSecurityOverHttp ^ Message { System::ServiceModel::NonDualMessageSecurityOverHttp ^ get(); };
public System.ServiceModel.NonDualMessageSecurityOverHttp Message { get; set; }
public System.ServiceModel.NonDualMessageSecurityOverHttp Message { get; }
member this.Message : System.ServiceModel.NonDualMessageSecurityOverHttp with get, set
member this.Message : System.ServiceModel.NonDualMessageSecurityOverHttp
Public Property Message As NonDualMessageSecurityOverHttp
Public ReadOnly Property Message As NonDualMessageSecurityOverHttp

Property Value

The message-level security settings for this binding. The default value includes: EstablishSecurityContext with default set to true, ClientCredentialType is Windows, AlgorithmSuite is Basic256, and NegotiateServiceCredential is true.

Examples

The following code illustrates use of this property.

WSHttpBinding myBinding = new WSHttpBinding();
myBinding.Security.Mode = SecurityMode.Message;
myBinding.Security.Message.ClientCredentialType =
    MessageCredentialType.Windows;

Applies to