MachineKey.Decode(String, MachineKeyProtection) メソッド

定義

注意事項

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.

ハッシュ ベース メッセージ認証コード (HMAC) で暗号化または提供されたデータをデコードまたは検証します。

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

パラメーター

encodedData
String

復号化/検証する、暗号化されたデータ。

protectionOption
MachineKeyProtection

encodedData パラメーターを暗号化するかどうか、またハッシュするかどうかを指定します。

戻り値

Byte[]

復号化されたデータを表す Byte 配列。

属性

コード例については、クラスの概要に関するページを MachineKey 参照してください。

注釈

渡されたデータの暗号化と検証に使用 ASP.NET 暗号化およびハッシュ アルゴリズムの詳細については、「 machineKey 要素 (ASP.NET 設定スキーマ)」を参照してください。

適用対象