Прочетете на английски

Споделяне чрез


FileConfigurationExtensions.GetFileLoadExceptionHandler Method

Definition

Gets a default action to be invoked for file-based providers when an error occurs.

C#
public static Action<Microsoft.Extensions.Configuration.FileLoadExceptionContext>? GetFileLoadExceptionHandler(this Microsoft.Extensions.Configuration.IConfigurationBuilder builder);

Parameters

Returns

The The Action to be invoked on a file load exception, if set.

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)