DataProtection.EncryptString メソッド

特定の文字列を暗号化します。

名前空間:  Microsoft.VisualStudio.Data.Services
アセンブリ:  Microsoft.VisualStudio.Data.Services (Microsoft.VisualStudio.Data.Services.dll 内)

構文

'宣言
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

パラメーター

戻り値

型 : System.String
暗号化された文字列を返します。

例外

例外 条件
CryptographicException

暗号化に失敗しました。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

DataProtection クラス

Microsoft.VisualStudio.Data.Services 名前空間