Export (0) Print
Expand All

MessageContractAttribute.HasProtectionLevel Property

Gets a value that indicates whether the message has a protection level.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public bool HasProtectionLevel { get; }

Property Value

Type: System.Boolean
true if the message must be encrypted, signed, or both; otherwise false. The default is false.

If this setting is true, the protection level for the message is the value of ProtectionLevel. For details about protection levels and their assumptions and scopes, see Understanding Protection Level.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft