OptionConfigureExtensionMethods.ConfigureNamedOptionForLogging<TOptions> 方法

定义

配置要记录的命名选项。

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

类型参数

TOptions

选项对象的类型。

参数

services
IServiceCollection

服务。

name
String

选项对象的名称。

返回

用于 IServiceCollection与其他调用链接的 。

适用于