ProtectedDataCookieTransform.Decode(Byte[]) Method

Definition

Verifies data protection and returns the decrypted data.

public:
 override cli::array <System::Byte> ^ Decode(cli::array <System::Byte> ^ encoded);
public override byte[] Decode (byte[] encoded);
override this.Decode : byte[] -> byte[]
Public Overrides Function Decode (encoded As Byte()) As Byte()

Parameters

encoded
Byte[]

Data previously returned from the Encode(Byte[]) method.

Returns

Byte[]

The decrypted data that was originally protected.

Exceptions

encoded is null.

encoded contains zero bytes.

Applies to