CompatibilityDataProtector.RunWithSuppressedPrimaryPurpose Method

Definition

Invokes a delegate where calls to Microsoft.AspNetCore.DataProtection.SystemWeb.CompatibilityDataProtector.ProviderProtect(System.Byte[]) and Microsoft.AspNetCore.DataProtection.SystemWeb.CompatibilityDataProtector.ProviderUnprotect(System.Byte[]) will ignore the primary purpose and instead use only the sub-purposes.

public:
 static cli::array <System::Byte> ^ RunWithSuppressedPrimaryPurpose(Func<System::Object ^, cli::array <System::Byte> ^, cli::array <System::Byte> ^> ^ callback, System::Object ^ state, cli::array <System::Byte> ^ input);
public static byte[] RunWithSuppressedPrimaryPurpose (Func<object,byte[],byte[]> callback, object state, byte[] input);
static member RunWithSuppressedPrimaryPurpose : Func<obj, byte[], byte[]> * obj * byte[] -> byte[]
Public Shared Function RunWithSuppressedPrimaryPurpose (callback As Func(Of Object, Byte(), Byte()), state As Object, input As Byte()) As Byte()

Parameters

callback
Func<Object,Byte[],Byte[]>
state
Object
input
Byte[]

Returns

Byte[]

Applies to