편집

다음을 통해 공유


MessageContractAttribute.ProtectionLevel Property

Definition

Gets or sets a value that specified whether the message must be encrypted, signed, or both.

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

One of the ProtectionLevel values. The default is None.

Exceptions

The value passed to the property when the setting is not one of the ProtectionLevel values.

Remarks

For details about protection levels and their assumptions and scopes, see Understanding Protection Level.

Applies to