DataProtectionCommonExtensions.Protect(IDataProtector, String) メソッド

定義

プレーンテキスト データの一部を暗号化で保護します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Protect(Microsoft::AspNetCore::DataProtection::IDataProtector ^ protector, System::String ^ plaintext);
public static string Protect (this Microsoft.AspNetCore.DataProtection.IDataProtector protector, string plaintext);
static member Protect : Microsoft.AspNetCore.DataProtection.IDataProtector * string -> string
<Extension()>
Public Function Protect (protector As IDataProtector, plaintext As String) As String

パラメーター

protector
IDataProtector

この操作に使用するデータ保護機能。

plaintext
String

保護するプレーンテキスト データ。

戻り値

プレーンテキスト データの保護された形式。

適用対象