Udostępnij przez


OperationInfo.ProtectionLevel Właściwość

Definicja

Pobiera lub ustawia ProtectionLevel operację.

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)

Wartość właściwości

ProtectionLevel Obiekt używany przez operację.

Przykłady

W poniższym przykładzie pokazano, jak uzyskać dostęp ProtectionLevel do właściwości.

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

Uwagi

Wartość domyślna to null, co oznacza, że poziom ochrony nie jest ustawiony.

Dotyczy