DataProtection.DecryptString Method
Decrypts a specified string.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaración
Public Shared Function DecryptString ( _
s As String _
) As String
public static string DecryptString(
string s
)
public:
static String^ DecryptString(
String^ s
)
static member DecryptString :
s:string -> string
public static function DecryptString(
s : String
) : String
Parameters
- s
Type: System.String
A string previously encrypted with a call to EncryptString.
Return Value
Type: System.String
Returns the decrypted string.
Exceptions
Exception | Condition |
---|---|
FormatException | The s parameter is not in a valid format. |
CryptographicException | The decryption failed. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.