OperationInfo.ProtectionLevel Propiedad

Definición

Obtiene o establece el ProtectionLevel de una operación.

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)

Valor de propiedad

Nullable<ProtectionLevel>

Objeto ProtectionLevel utilizado por la operación.

Ejemplos

En el ejemplo siguiente se muestra cómo se obtiene acceso a la propiedad ProtectionLevel.

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

Comentarios

El valor predeterminado es null, lo que significa que no se ha establecido el nivel de protección.

Se aplica a