DataProtection.DecryptString Method
Decrypts a specified string.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Public Shared Function DecryptString ( _
s As String _
) As String
'使用
Dim s As String
Dim returnValue As String
returnValue = DataProtection.DecryptString(s)
public static string DecryptString(
string s
)
public:
static String^ DecryptString(
String^ s
)
public static function DecryptString(
s : String
) : String
Parameters
s
Type: System.StringA string previously encrypted with a call to EncryptString.
Return Value
Type: System.String
The decrypted string.
Exceptions
Exception | Condition |
---|---|
FormatException | The s parameter is not in a valid format. |
CryptographicException | The decryption failed. |
Permissions
- 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.