MachineKey.Decode(String, MachineKeyProtection) Yöntem

Tanım

Dikkat

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.

Şifrelenmiş veya karma tabanlı ileti kimlik doğrulama koduyla (HMAC) sağlanan verilerin kodunu çözer ve/veya doğrular.

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()

Parametreler

encodedData
String

Şifresi çözülecek ve/veya doğrulanan şifrelenmiş veriler.

protectionOption
MachineKeyProtection

Parametrenin encodedData şifrelenip şifrelenmeyeceğini ve/veya karma oluşturulup oluşturulmayacağını gösterir.

Döndürülenler

Byte[]

Byte Şifresi çözülen verileri temsil eden bir dizi.

Öznitelikler

Örnekler

Kod örneği için bkz. sınıfa MachineKey genel bakış.

Açıklamalar

ASP.NET geçirilen verilerin şifresini çözmek ve doğrulamak için hangi şifreleme ve karma algoritmalarını kullandığı hakkında bilgi için bkz. machineKey Öğesi (ASP.NET Ayarlar Şeması).

Şunlara uygulanır