WSHttpBinding.Security WSHttpBinding.Security WSHttpBinding.Security WSHttpBinding.Security Property

Définition

Obtient les paramètres de sécurité utilisés avec cette liaison.Gets the security settings used with this binding.

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

Valeur de propriété

WSHttpSecurity qui est utilisé avec cette liaison.The WSHttpSecurity that is used with this binding. La valeur par défaut de la propriété Mode est Message.The default value Mode property is Message.

Exemples

L'exemple de code suivant montre comment obtenir la valeur de Security.The following example shows how to obtain the value of the Security.

WSHttpBinding wsHttpBinding = new WSHttpBinding();
WSHttpSecurity whSecurity = wsHttpBinding.Security;
Dim wsHttpBinding As New WSHttpBinding()
Dim whSecurity As WSHttpSecurity = wsHttpBinding.Security

Remarques

Pour utiliser un type de sécurité autre que le type par défaut, utilisez le constructeur WSHttpBinding(SecurityMode).To use something other than the default security type, use the WSHttpBinding(SecurityMode) constructor.

S’applique à