Επεξεργασία

Κοινή χρήση μέσω


OperationInfo.ProtectionLevel Property

Definition

Gets or sets the ProtectionLevel of an operation.

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

Property Value

A ProtectionLevel object used by the operation.

Examples

The following example demonstrates how to access the ProtectionLevel property.

OperationInfo info = new OperationInfo();
info.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign;
Dim info As New OperationInfo()
info.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign

Remarks

The default value is null, which means that the protection level is not set.

Applies to