ITimeLimitedDataProtector.Unprotect(Byte[], DateTimeOffset) Metoda

Definicja

Kryptograficznie usuwa ochronę elementu chronionych danych.

public:
 cli::array <System::Byte> ^ Unprotect(cli::array <System::Byte> ^ protectedData, [Runtime::InteropServices::Out] DateTimeOffset % expiration);
public byte[] Unprotect (byte[] protectedData, out DateTimeOffset expiration);
abstract member Unprotect : byte[] * DateTimeOffset -> byte[]
Public Function Unprotect (protectedData As Byte(), ByRef expiration As DateTimeOffset) As Byte()

Parametry

protectedData
Byte[]

Chronione dane do wyrejechowania ochrony.

expiration
DateTimeOffset

Parametr "out", który po pomyślnej operacji unprotect otrzymuje datę wygaśnięcia ładunku.

Zwraca

Byte[]

Postać zwykłego tekstu chronionych danych.

Wyjątki

Zgłaszany, jeśli protectedData jest nieprawidłowy, źle sformułowany lub wygasł.

Dotyczy