LoggingRedactionExtensions.EnableRedaction 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
EnableRedaction(ILoggingBuilder) |
啟用記錄基礎結構內的修訂功能。 |
EnableRedaction(ILoggingBuilder, IConfigurationSection) |
啟用記錄基礎結構內的修訂功能。 |
EnableRedaction(ILoggingBuilder, Action<LoggerRedactionOptions>) |
啟用記錄基礎結構內的修訂功能。 |
EnableRedaction(ILoggingBuilder)
啟用記錄基礎結構內的修訂功能。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableRedaction(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableRedaction (this Microsoft.Extensions.Logging.ILoggingBuilder builder);
static member EnableRedaction : Microsoft.Extensions.Logging.ILoggingBuilder -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableRedaction (builder As ILoggingBuilder) As ILoggingBuilder
參數
- builder
- ILoggingBuilder
要加入記錄的相依性插入容器。
傳回
builder
的值。
適用於
EnableRedaction(ILoggingBuilder, IConfigurationSection)
啟用記錄基礎結構內的修訂功能。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableRedaction(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableRedaction (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member EnableRedaction : Microsoft.Extensions.Logging.ILoggingBuilder * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableRedaction (builder As ILoggingBuilder, section As IConfigurationSection) As ILoggingBuilder
參數
- builder
- ILoggingBuilder
要加入記錄的相依性插入容器。
- section
- IConfigurationSection
包含 的 LoggerRedactionOptions 組態區段。
傳回
builder
的值。
適用於
EnableRedaction(ILoggingBuilder, Action<LoggerRedactionOptions>)
啟用記錄基礎結構內的修訂功能。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Logging::ILoggingBuilder ^ EnableRedaction(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Action<Microsoft::Extensions::Logging::LoggerRedactionOptions ^> ^ configure);
public static Microsoft.Extensions.Logging.ILoggingBuilder EnableRedaction (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Action<Microsoft.Extensions.Logging.LoggerRedactionOptions> configure);
static member EnableRedaction : Microsoft.Extensions.Logging.ILoggingBuilder * Action<Microsoft.Extensions.Logging.LoggerRedactionOptions> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function EnableRedaction (builder As ILoggingBuilder, configure As Action(Of LoggerRedactionOptions)) As ILoggingBuilder
參數
- builder
- ILoggingBuilder
要加入記錄的相依性插入容器。
- configure
- Action<LoggerRedactionOptions>
委派微調選項。
傳回
builder
的值。