Compartir a través de


DataProtection.EncryptString(String) Method

Definition

Encrypts a specified string.

public:
 static System::String ^ EncryptString(System::String ^ s);
public static string EncryptString (string s);
static member EncryptString : string -> string
Public Shared Function EncryptString (s As String) As String

Parameters

s
String

A string to encrypt.

Returns

Returns the encrypted string.

Exceptions

The encryption failed.

Applies to