Table of Contents

Field MauiCacheDirectory

Namespace
Alternet.Common
Assembly
Alternet.Common.v10.dll

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.