Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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)

public byte[] Unprotect(
	byte[] encryptedData
)

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 null.

CryptographicException

encryptedData contained an invalid purpose.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft