Field MauiCacheDirectory
Gets the cache directory path for the current application if the 'Microsoft.Maui.Essentials' assembly is loaded.
public static readonly Lazy<string?> MauiCacheDirectory
Returns
- Lazy<string>
- Gets the cache directory path for the current application if the 'Microsoft.Maui.Essentials' assembly is loaded.
Remarks
Returns null
if the 'Microsoft.Maui.Essentials' assembly is not loaded,
the type 'Microsoft.Maui.Storage.FileSystem' cannot be found, or the property
'CacheDirectory' is not accessible.