Partager via


DataProtection.EncryptString, méthode

Chiffre une chaîne spécifiée.

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

Syntaxe

'Déclaration
Public Shared Function EncryptString ( _
    s As String _
) As String
public static string EncryptString(
    string s
)
public:
static String^ EncryptString(
    String^ s
)
static member EncryptString : 
        s:string -> string
public static function EncryptString(
    s : String
) : String

Paramètres

  • s
    Type : String

    Une chaîne à chiffrer.

Valeur de retour

Type : String
Retourne la chaîne chiffrée.

Exceptions

Exception Condition
CryptographicException

Le chiffrement a échoué.

Sécurité .NET Framework

Voir aussi

Référence

DataProtection Classe

Microsoft.VisualStudio.Data, espace de noms

DecryptString