MachineKeySection.Validation Propriedade
Definição
Especifica o algoritmo de hash que é usado para a validação de dados de estado de exibição e autenticação de formulários.Specifies the hashing algorithm that is used for validating forms authentication and view state data.
public:
property System::Web::Configuration::MachineKeyValidation Validation { System::Web::Configuration::MachineKeyValidation get(); void set(System::Web::Configuration::MachineKeyValidation value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.Configuration.MachineKeyValidationConverter))]
[System.Configuration.ConfigurationProperty("validation", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public System.Web.Configuration.MachineKeyValidation Validation { get; set; }
public System.Web.Configuration.MachineKeyValidation Validation { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Web.Configuration.MachineKeyValidationConverter))>]
[<System.Configuration.ConfigurationProperty("validation", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.Validation : System.Web.Configuration.MachineKeyValidation with get, set
member this.Validation : System.Web.Configuration.MachineKeyValidation with get, set
Public Property Validation As MachineKeyValidation
Valor da propriedade
Um valor que indica o algoritmo de hash que é usado para validar a autenticação de formulários e exibir dados de estado.A value that indicates the hashing algorithm that is used to validate forms authentication and view state data.
- Atributos
Exemplos
O exemplo a seguir demonstra como definir a Validation propriedade usando código.The following example demonstrates how to set the Validation property by using code. Este exemplo faz parte de um exemplo maior fornecido para a MachineKeySection classe.This example is part of a larger example provided for the MachineKeySection class.
// Display Validation property.
Console.WriteLine("Validation: {0}",
configSection.Validation);
' Display Validation value.
Console.WriteLine("Validation: {0}", configSection.Validation)
Comentários
A Validation Propriedade dá suporte a algoritmos de criptografia que são definidos pela MachineKeyValidation enumeração.The Validation property supports encryption algorithms that are defined by the MachineKeyValidation enumeration. Normalmente, essa propriedade é definida declarativamente no decryption atributo do elemento machineKey do arquivo Web.config.This property is typically set declaratively in the decryption attribute of the machineKey element of the Web.config file. Para obter mais informações, consulte o elemento machineKey .For more information, see the machineKey element.