DataProtectionCommonExtensions.Protect(IDataProtector, String) Yöntem

Tanım

Şifreleme, düz metin olan verileri korur.

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

Parametreler

protector
IDataProtector

Bu işlem için kullanılacak veri koruyucusu.

plaintext
String

Korunacak düz metin verileri.

Döndürülenler

String

Düz metin verisinin korumalı biçimi.

Şunlara uygulanır