WSDualHttpSecurity.Mode WSDualHttpSecurity.Mode WSDualHttpSecurity.Mode WSDualHttpSecurity.Mode Property

Definición

Obtiene o establece el modo de seguridad para el WSDualHttpBinding primario.Gets or sets the security mode for the parent WSDualHttpBinding.

public:
 property System::ServiceModel::WSDualHttpSecurityMode Mode { System::ServiceModel::WSDualHttpSecurityMode get(); void set(System::ServiceModel::WSDualHttpSecurityMode value); };
public System.ServiceModel.WSDualHttpSecurityMode Mode { get; set; }
member this.Mode : System.ServiceModel.WSDualHttpSecurityMode with get, set
Public Property Mode As WSDualHttpSecurityMode

Valor de propiedad

Un valor de la enumeración WSDualHttpSecurityMode.A value from the WSDualHttpSecurityMode enumeration. De manera predeterminada, es Message.The default is Message.

Excepciones

Ejemplos

El código siguiente muestra cómo establecer esta propiedad.The following code shows how to set this property.

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

Comentarios

El valor de esta propiedad determina si la seguridad del nivel del mensaje se aplica al enlace.The value of this property determines whether message-level security is applied to the binding.

Se aplica a