OperationInfo.ProtectionLevel Eigenschaft

Definition

Ruft den ProtectionLevel eines Vorgangs ab oder legt ihn fest.

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)

Eigenschaftswert

Ein vom Vorgang verwendetes ProtectionLevel-Objekt.

Beispiele

Im folgenden Beispiel wird der Zugriff auf die ProtectionLevel-Eigenschaft veranschaulicht.

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

Hinweise

Der Standardwert ist null, was bedeutet, dass der Schutzgrad nicht festgelegt ist.

Gilt für: