इसके माध्यम से साझा किया गया


FileConfigurationExtensions.GetFileLoadExceptionHandler Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static Action<Microsoft::Extensions::Configuration::FileLoadExceptionContext ^> ^ GetFileLoadExceptionHandler(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder);
public static Action<Microsoft.Extensions.Configuration.FileLoadExceptionContext>? GetFileLoadExceptionHandler (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder);
static member GetFileLoadExceptionHandler : Microsoft.Extensions.Configuration.IConfigurationBuilder -> Action<Microsoft.Extensions.Configuration.FileLoadExceptionContext>
<Extension()>
Public Function GetFileLoadExceptionHandler (builder As IConfigurationBuilder) As Action(Of FileLoadExceptionContext)

Parameters

Returns

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

Applies to