Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Encrypts a specified string.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
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
Parameters
- s
Type: System.String
A string to encrypt.
Return Value
Type: System.String
Returns the encrypted string.
Exceptions
| Exception | Condition |
|---|---|
| CryptographicException | The encryption failed. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.