Partage via


OperationInfo.ProtectionLevel Propriété

Définition

Obtient ou définit le ProtectionLevel d'une opération.

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)

Valeur de propriété

Nullable<ProtectionLevel>

Objet ProtectionLevel utilisé par l'opération.

Exemples

L'exemple suivant montre comment accéder à la propriété ProtectionLevel.

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

Remarques

La valeur par défaut est null, c'est-à-dire que le niveau de protection n'est pas défini.

S’applique à