MachineKeySection.DataProtectorType Propriedade

Definição

Obtém ou define o nome do tipo de protetor de dados.Gets or sets the name of the data protector type. O padrão é Empty.The default is 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=Mono.Cecil.CustomAttributeArgument)]
public string DataProtectorType { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))>]
[<System.Configuration.ConfigurationProperty("dataProtectorType", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.DataProtectorType : string with get, set
Public Property DataProtectorType As String

Valor da propriedade

String

O nome do tipo de protetor de dados.The name of the data protector type.

Atributos

Comentários

Para especificar algoritmos de proteção de dados personalizados para ASP.NET, defina a MachineKeySection.CompatibilityMode propriedade como Framework45 e defina essa propriedade como uma cadeia de caracteres que representa uma classe derivada da DataProtector classe.To specify custom data protection algorithms for ASP.NET, set the MachineKeySection.CompatibilityMode property to Framework45 and set this property to a string that represents a class that derives from the DataProtector class. Essa cadeia de caracteres corresponde ao providerClass parâmetro que é passado para o DataProtector.Create método de alocador estático.This string corresponds to the providerClass parameter that is passed to the static DataProtector.Create factory method. A classe que você especificar será usada pelos MachineKey.Protect MachineKey.Unprotect métodos e mesmo se você não especificar a Framework45 opção.The class you specify is used by the MachineKey.Protect and MachineKey.Unprotect methods even if you do not specify the Framework45 option.

Se você definir essa propriedade, também deverá definir a ApplicationName propriedade.If you set this property, you must also set the ApplicationName property.

Aplica-se a