Share via


FileSystemXmlRepository.DefaultKeyStorageDirectory Property

Definition

The default key storage directory. On Windows, this currently corresponds to "Environment.SpecialFolder.LocalApplication/ASP.NET/DataProtection-Keys". On Linux and macOS, this currently corresponds to "$HOME/.aspnet/DataProtection-Keys".

public:
 static property System::IO::DirectoryInfo ^ DefaultKeyStorageDirectory { System::IO::DirectoryInfo ^ get(); };
public static System.IO.DirectoryInfo DefaultKeyStorageDirectory { get; }
public static System.IO.DirectoryInfo? DefaultKeyStorageDirectory { get; }
static member DefaultKeyStorageDirectory : System.IO.DirectoryInfo
Public Shared ReadOnly Property DefaultKeyStorageDirectory As DirectoryInfo

Property Value

Remarks

This property can return null if no suitable default key storage directory can be found, such as the case when the user profile is unavailable.

Applies to