共用方式為


LoggingEnrichmentExtensions.EnableEnrichment 方法

定義

多載

EnableEnrichment(ILoggingBuilder)

啟用記錄基礎結構內的擴充功能。

EnableEnrichment(ILoggingBuilder, IConfigurationSection)

啟用記錄基礎結構內的擴充功能。

EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>)

啟用記錄基礎結構內的擴充功能。

EnableEnrichment(ILoggingBuilder)

來源:
LoggingEnrichmentExtensions.cs
來源:
LoggingEnrichmentExtensions.cs

啟用記錄基礎結構內的擴充功能。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableEnrichment(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableEnrichment (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member EnableEnrichment : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableEnrichment (builder As ILoggingBuilder) As ILoggingBuilder

參數

builder
ILoggingBuilder

要加入記錄的相依性插入容器。

傳回

builder的值。

適用於

EnableEnrichment(ILoggingBuilder, IConfigurationSection)

來源:
LoggingEnrichmentExtensions.cs
來源:
LoggingEnrichmentExtensions.cs

啟用記錄基礎結構內的擴充功能。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableEnrichment(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableEnrichment (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member EnableEnrichment : Microsoft.Extensions.Logging.ILoggingBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableEnrichment (builder As ILoggingBuilder, section As IConfigurationSection) As ILoggingBuilder

參數

builder
ILoggingBuilder

要加入記錄的相依性插入容器。

section
IConfigurationSection

包含 LoggerEnrichmentOptions的組態區段。

傳回

builder的值。

適用於

EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>)

來源:
LoggingEnrichmentExtensions.cs
來源:
LoggingEnrichmentExtensions.cs

啟用記錄基礎結構內的擴充功能。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableEnrichment(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::LoggerEnrichmentOptions ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableEnrichment (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.LoggerEnrichmentOptions> configure);
static member EnableEnrichment : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.LoggerEnrichmentOptions> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableEnrichment (builder As ILoggingBuilder, configure As Action(Of LoggerEnrichmentOptions)) As ILoggingBuilder

參數

builder
ILoggingBuilder

要加入記錄的相依性插入容器。

configure
Action<LoggerEnrichmentOptions>

委派微調選項。

傳回

builder的值。

適用於