Compartir por


MachineKeySection.DataProtectorType Propiedad

Definición

Obtiene o establece el nombre del tipo de protector de datos. El valor predeterminado es Empty.

public:
 property System::String ^ DataProtectorType { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))]
[System.Configuration.ConfigurationProperty("dataProtectorType", DefaultValue="")]
public string DataProtectorType { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))>]
[<System.Configuration.ConfigurationProperty("dataProtectorType", DefaultValue="")>]
member this.DataProtectorType : string with get, set
Public Property DataProtectorType As String

Valor de propiedad

Nombre del tipo de protector de datos.

Atributos

Comentarios

Para especificar algoritmos de protección de datos personalizados para ASP.NET, establezca la MachineKeySection.CompatibilityMode propiedad Framework45 en y establezca esta propiedad en una cadena que represente una clase que derive de la DataProtector clase . Esta cadena corresponde al providerClass parámetro que se pasa al método de generador estático DataProtector.Create . La clase que especifique se usa en los MachineKey.Protect métodos y MachineKey.Unprotect incluso si no especifica la Framework45 opción .

Si establece esta propiedad, también debe establecer la ApplicationName propiedad .

Se aplica a