Gets or sets the key that is used to encrypt and decrypt data, or the process by which the key is generated.
Assembly: System.Web (in System.Web.dll)
'Declaration <TypeConverterAttribute(GetType(WhiteSpaceTrimStringConverter))> _ <StringValidatorAttribute(MinLength := )> _ <ConfigurationPropertyAttribute("decryptionKey", DefaultValue := "AutoGenerate,IsolateApps")> _ Public Property DecryptionKey As String 'Usage Dim instance As MachineKeySection Dim value As String value = instance.DecryptionKey instance.DecryptionKey = value
Property ValueType: System.String
An encryption key value, or a value that indicates how the key is generated. The default is "AutoGenerate,IsolateApps".
The property is used for encryption and decryption, such as in Windows Forms authentication, and for view state when the Validation property is set to "3DES".
Use the "AutoGenerate" option to specify that ASP.NET generates a random key and stores it in the Local Security Authority. The "AutoGenerate" option is part of the default value.
If you add the IsolateApps modifier to the value, ASP.NET generates a unique encrypted key for each application by using each application's application ID. IsolateApps is also part of the default value.
If you need to support configuration across a network of Web servers (a Web farm), set the property manually to ensure consistent configuration.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.