Aracılığıyla paylaş


DataProtectionCommonExtensions.Unprotect(IDataProtector, String) Yöntem

Tanım

Şifreli olarak korumalı verilerin bir parçasını korumaz.

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

Parametreler

protector
IDataProtector

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

protectedData
String

Korumasını kaldıracak korumalı veriler.

Döndürülenler

Korumalı verilerin düz metin biçimi.

Özel durumlar

Geçersiz veya hatalı biçimlendirilmişse protectedData oluşturulur.

Şunlara uygulanır