 | ConfigureExtensionsConfigure Method (NLogLoggerProvider, IConfigurationSection) |
Namespace:
NLog.Extensions.Logging
Assembly:
NLog.Extensions.Logging (in NLog.Extensions.Logging.dll) Version: 5.0.1+b127d73a8dd3e88e56cba56e4d025fce612bbc63
Syntaxpublic static NLogLoggerProvider Configure(
this NLogLoggerProvider nlogProvider,
IConfigurationSection configurationSection
)
<ExtensionAttribute>
Public Shared Function Configure (
nlogProvider As NLogLoggerProvider,
configurationSection As IConfigurationSection
) As NLogLoggerProvider
Dim nlogProvider As NLogLoggerProvider
Dim configurationSection As IConfigurationSection
Dim returnValue As NLogLoggerProvider
returnValue = nlogProvider.Configure(configurationSection)
[<ExtensionAttribute>]
static member Configure :
nlogProvider : NLogLoggerProvider *
configurationSection : IConfigurationSection -> NLogLoggerProvider
Parameters
- nlogProvider
- Type: NLog.Extensions.LoggingNLogLoggerProvider
- configurationSection
- Type: IConfigurationSection
Microsoft Extension Configuration
Return Value
Type:
NLogLoggerProviderUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
NLogLoggerProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also