Editar

Compartir a través de


OperationDescription.ProtectionLevel Property

Definition

Gets or sets the protection level for the operation.

public:
 property System::Net::Security::ProtectionLevel ProtectionLevel { System::Net::Security::ProtectionLevel get(); void set(System::Net::Security::ProtectionLevel value); };
public System.Net.Security.ProtectionLevel ProtectionLevel { get; set; }
member this.ProtectionLevel : System.Net.Security.ProtectionLevel with get, set
Public Property ProtectionLevel As ProtectionLevel

Property Value

The ProtectionLevel for the operation.

Remarks

The ProtectionLevel property controls whether the messages of an operation must be encrypted, signed, or both. The value set here is the default value for all messages specified for this operation unless a narrower scope overrides this value.

ProtectionLevel corresponds to the ProtectionLevel property in the Windows Communication Foundation (WCF) programming model.

When the ProtectionLevel is set, the HasProtectionLevel property is set to true.

Applies to