MessageContractAttribute.ProtectionLevel Propriété

Définition

Obtient ou définit une valeur qui spécifie si le message doit être chiffré, signé ou les deux.

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

Valeur de propriété

Une des ProtectionLevel valeurs. La valeur par défaut est None.

Exceptions

Valeur transmise à la propriété lorsque le paramètre n’est pas l’une des ProtectionLevel valeurs.

Remarques

Pour plus d’informations sur les niveaux de protection et leurs hypothèses et étendues, consultez Présentation du niveau de protection.

S’applique à