Partager via


DataProtection.DecryptString Method

Decrypts a specified string.

Namespace:  Microsoft.VisualStudio.Data.Services
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
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

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.

.NET Framework Security

See Also

Reference

DataProtection Class

Microsoft.VisualStudio.Data.Services Namespace