MachineKey.Decode(String, MachineKeyProtection) Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Let op
This method is obsolete and is only provided for compatibility with existing code. It is recommended that new code use the Protect and Unprotect methods instead.
Ontsleutelt en/of valideert gegevens die zijn versleuteld of geleverd met een HMAC (Hash-based Message Authentication Code).
public:
static cli::array <System::Byte> ^ Decode(System::String ^ encodedData, System::Web::Security::MachineKeyProtection protectionOption);
public static byte[] Decode(string encodedData, System.Web.Security.MachineKeyProtection protectionOption);
[System.Obsolete("This method is obsolete and is only provided for compatibility with existing code. It is recommended that new code use the Protect and Unprotect methods instead.")]
public static byte[] Decode(string encodedData, System.Web.Security.MachineKeyProtection protectionOption);
static member Decode : string * System.Web.Security.MachineKeyProtection -> byte[]
[<System.Obsolete("This method is obsolete and is only provided for compatibility with existing code. It is recommended that new code use the Protect and Unprotect methods instead.")>]
static member Decode : string * System.Web.Security.MachineKeyProtection -> byte[]
Public Shared Function Decode (encodedData As String, protectionOption As MachineKeyProtection) As Byte()
Parameters
- encodedData
- String
De versleutelde gegevens die moeten worden ontsleuteld en/of gevalideerd.
- protectionOption
- MachineKeyProtection
Geeft aan of de encodedData parameter moet worden versleuteld en/of gehasht.
Retouren
Een Byte matrix die de ontsleutelde gegevens vertegenwoordigt.
- Kenmerken
Voorbeelden
Zie het MachineKey klassenoverzicht voor een codevoorbeeld.
Opmerkingen
Zie machineKey-element (ASP.NET Settings Schema) voor informatie over welke versleutelings- en hash-algoritmen ASP.NET gebruikt voor het ontsleutelen en valideren van de gegevens die worden doorgegeven.