Share via


MachineKeySection.DataProtectorType Proprietà

Definizione

Ottiene o imposta il nome del tipo di protezione dati. Il valore predefinito è 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

Valore della proprietà

Nome del tipo di protezione dati.

Attributi

Commenti

Per specificare algoritmi di protezione dei dati personalizzati per ASP.NET, impostare la MachineKeySection.CompatibilityMode proprietà su Framework45 e impostare questa proprietà su una stringa che rappresenta una classe che deriva dalla DataProtector classe. Questa stringa corrisponde al providerClass parametro passato al metodo static factory DataProtector.Create . La classe specificata viene usata dai MachineKey.Protect metodi e MachineKey.Unprotect anche se non si specifica l'opzione Framework45 .

Se si imposta questa proprietà, è necessario impostare anche la ApplicationName proprietà.

Si applica a