DataProtection.DecryptString, méthode

Déchiffre une chaîne spécifiée.

Espace de noms :  Microsoft.VisualStudio.Data.Services
Assembly :  Microsoft.VisualStudio.Data.Services (dans Microsoft.VisualStudio.Data.Services.dll)

Syntaxe

'Déclaration
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

Paramètres

  • s
    Type : String

    Une chaîne chiffrée précédemment avec un appel à EncryptString.

Valeur de retour

Type : String
La chaîne décryptée.

Exceptions

Exception Condition
FormatException

Le paramètre d' s n'est pas dans un format valide.

CryptographicException

Le déchiffrement a échoué.

Sécurité .NET Framework

Voir aussi

Référence

DataProtection Classe

Microsoft.VisualStudio.Data.Services, espace de noms