CompatibilityDataProtector.RunWithSuppressedPrimaryPurpose Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- state
- Object
- input
- Byte[]
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for