DataProtection.EncryptString(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.