FileConfigurationExtensions.GetFileLoadExceptionHandler 方法

定义

获取用于基于文件的提供程序的默认 IFileProvider

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)

参数

返回

IConfigurationBuilder

适用于