The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
MessageContractAttribute::ProtectionLevel Property
.NET Framework (current version)
Gets or sets a value that specified whether the message must be encrypted, signed, or both.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: property ProtectionLevel ProtectionLevel { ProtectionLevel get(); void set(ProtectionLevel value); }
Property Value
Type: System.Net.Security::ProtectionLevelOne of the ProtectionLevel values. The default is None.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The value passed to the property when the setting is not one of the ProtectionLevel values. |
For details about protection levels and their assumptions and scopes, see Understanding Protection Level.
.NET Framework
Available since 3.0
Available since 3.0
Show: