LoggingEnrichmentExtensions.EnableEnrichment 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
EnableEnrichment(ILoggingBuilder) |
啟用記錄基礎結構內的擴充功能。 |
EnableEnrichment(ILoggingBuilder, IConfigurationSection) |
啟用記錄基礎結構內的擴充功能。 |
EnableEnrichment(ILoggingBuilder, Action<LoggerEnrichmentOptions>) |
啟用記錄基礎結構內的擴充功能。 |
EnableEnrichment(ILoggingBuilder)
啟用記錄基礎結構內的擴充功能。
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)
啟用記錄基礎結構內的擴充功能。
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>)
啟用記錄基礎結構內的擴充功能。
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
的值。