Langage

FileConfigurationSource.OnLoadException Propriété

Définition

Obtient ou définit l’action appelée si une exception non interceptée se produit dans FileConfigurationProvider.Load.

public:
 property Action<Microsoft::Extensions::Configuration::FileLoadExceptionContext ^> ^ OnLoadException { Action<Microsoft::Extensions::Configuration::FileLoadExceptionContext ^> ^ get(); void set(Action<Microsoft::Extensions::Configuration::FileLoadExceptionContext ^> ^ value); };
public Action<Microsoft.Extensions.Configuration.FileLoadExceptionContext>? OnLoadException { get; set; }
member this.OnLoadException : Action<Microsoft.Extensions.Configuration.FileLoadExceptionContext> with get, set
Public Property OnLoadException As Action(Of FileLoadExceptionContext)

Valeur de propriété

Remarques

Lorsqu’il ReloadOnChange est activé, ce rappel est également appelé sur les échecs de rechargement en arrière-plan. Si le rappel n’est pas défini ou n’est pas défini Ignoretruesur , les exceptions des rechargements en arrière-plan se propagent non gérés sur le pool de threads.

S’applique à