Unprotect Method

DataProtector::Unprotect Method (array<Byte>^)

.NET Framework (current version)
 

Unprotects the specified protected data.

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

public:
array<unsigned char>^ Unprotect(
	array<unsigned char>^ encryptedData
)

Parameters

encryptedData
Type: array<System::Byte>^

The encrypted data to be unprotected.

Return Value

Type: array<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:
© 2016 Microsoft