Edit

Share via


OptionConfigureExtensionMethods.ConfigureNamedOptionForLogging<TOptions> Method

Definition

Configures a named option to be logged.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureNamedOptionForLogging<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name) where TOptions : class;
static member ConfigureNamedOptionForLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function ConfigureNamedOptionForLogging(Of TOptions As Class) (services As IServiceCollection, name As String) As IServiceCollection

Type Parameters

TOptions

The option object's type.

Parameters

services
IServiceCollection

The services.

name
String

The option object's name.

Returns

The IServiceCollection, for chaining with other calls.

Applies to