OperationContractAttribute.HasProtectionLevel 属性

定义

获取一个值,该值指示是否必须对此操作的消息进行加密和/或签名。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

属性值

Boolean

如果 true 属性设置为除 ProtectionLevel 以外的任何值,则为 None;否则为 falsetrue if the ProtectionLevel property is set to a value other than None; otherwise, false. 默认值为 falseThe default is false.

注解

使用 HasProtectionLevel 属性确定此操作的消息是否需要特定的保护级别。Use the HasProtectionLevel property to determine whether a specific protection level is required by the messages of this operation.

适用于