Share via


DataProtection.DecryptString(String) Method

Definition

Decrypts a specified string.

public:
 static System::String ^ DecryptString(System::String ^ s);
public static string DecryptString (string s);
static member DecryptString : string -> string
Public Shared Function DecryptString (s As String) As String

Parameters

s
String

A string previously encrypted with a call to EncryptString(String).

Returns

Returns the decrypted string.

Exceptions

The s parameter is not in a valid format.

The decryption failed.

Applies to