ProtectedDataCookieTransform.Decode Method (Byte[])

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Verifies data protection and returns the decrypted data.

Namespace:   System.IdentityModel
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override byte[] Decode(
	byte[] encoded
)

Parameters

encoded
Type: System.Byte[]

Data previously returned from the Encode method.

Return Value

Type: System.Byte[]

The decrypted data that was originally protected.

Exception Condition
ArgumentNullException

encoded is null.

ArgumentException

encoded contains zero bytes.

.NET Framework
Available since 4.5
Return to top
Show: