DataProtector.Unprotect 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.

Unprotects the specified protected data.

Namespace:   System.Security.Cryptography
Assembly:  System.Security (in System.Security.dll)

Public Function Unprotect (
	encryptedData As Byte()
) As Byte()

Parameters

encryptedData
Type: System.Byte()

The encrypted data to be unprotected.

Return Value

Type: System.Byte()

A byte array that contains the plain-text data.

Exception Condition
ArgumentNullException

encryptedData is null.

CryptographicException

encryptedData contained an invalid purpose.

.NET Framework
Available since 4.5
Return to top
Show: