 | ConfigureExtensionsConfigure Method (NLogProviderOptions, IConfigurationSection) |
Namespace:
NLog.Extensions.Logging
Assembly:
NLog.Extensions.Logging (in NLog.Extensions.Logging.dll) Version: 5.0.1+b127d73a8dd3e88e56cba56e4d025fce612bbc63
Syntaxpublic static NLogProviderOptions Configure(
this NLogProviderOptions options,
IConfigurationSection configurationSection
)
<ExtensionAttribute>
Public Shared Function Configure (
options As NLogProviderOptions,
configurationSection As IConfigurationSection
) As NLogProviderOptions
Dim options As NLogProviderOptions
Dim configurationSection As IConfigurationSection
Dim returnValue As NLogProviderOptions
returnValue = options.Configure(configurationSection)
[<ExtensionAttribute>]
static member Configure :
options : NLogProviderOptions *
configurationSection : IConfigurationSection -> NLogProviderOptions
Parameters
- options
- Type: NLog.Extensions.LoggingNLogProviderOptions
- configurationSection
- Type: IConfigurationSection
Microsoft Extension Configuration
Return Value
Type:
NLogProviderOptionsUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
NLogProviderOptions. 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