DataProtectionBuilderExtensions.PersistKeysToFileSystem 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.
Configures the data protection system to persist keys to the specified directory. This path may be on the local machine or may point to a UNC share.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ PersistKeysToFileSystem(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, System::IO::DirectoryInfo ^ directory);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToFileSystem (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, System.IO.DirectoryInfo directory);
static member PersistKeysToFileSystem : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * System.IO.DirectoryInfo -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function PersistKeysToFileSystem (builder As IDataProtectionBuilder, directory As DirectoryInfo) As IDataProtectionBuilder
Parameters
- builder
- IDataProtectionBuilder
- directory
- DirectoryInfo
The directory in which to store keys.
Returns
A reference to the IDataProtectionBuilder after this operation has completed.
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