Export (0) Print
Expand All

DataProtector.Unprotect Method

.NET Framework 4.6 and 4.5

Unprotects the specified protected data.

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

member Unprotect : 
        encryptedData:byte[] -> 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.

ExceptionCondition
ArgumentNullException

encryptedData is a null reference (Nothing in Visual Basic).

CryptographicException

encryptedData contained an invalid purpose.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft