संपादित करें

इसके माध्यम से साझा किया गया


OperationContractAttribute.HasProtectionLevel Property

Definition

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

public:
 property bool HasProtectionLevel { bool get(); };
public bool HasProtectionLevel { get; }
member this.HasProtectionLevel : bool
Public ReadOnly Property HasProtectionLevel As Boolean

Property Value

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

Remarks

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

Applies to