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
Available since 3.0
Return to top