OperationContractAttribute.HasProtectionLevel Property

Gets a value that indicates whether the messages for this operation must be encrypted, signed, or both.

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

public bool HasProtectionLevel { get; }

Property Value

Type: System.Boolean
true if the ProtectionLevel property is set to a value other than None; otherwise, false. The default is false.

Use the HasProtectionLevel property to determine whether a specific protection level is required by the messages of this operation.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft