RedactionServiceCollectionExtensions.AddRedaction 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddRedaction(IServiceCollection) |
在 IServiceCollection中註冊 IRedactorProvider 實作。 |
AddRedaction(IServiceCollection, Action<IRedactionBuilder>) |
在 IServiceCollection 中註冊 IRedactorProvider 的實作,並設定可用的 redactors。 |
AddRedaction(IServiceCollection)
在 IServiceCollection中註冊 IRedactorProvider 實作。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRedaction (services As IServiceCollection) As IServiceCollection
參數
- services
- IServiceCollection
用來設定修訂的 IServiceCollection 實例。
傳回
services
的值。
例外狀況
services
null
。
適用於
AddRedaction(IServiceCollection, Action<IRedactionBuilder>)
在 IServiceCollection 中註冊 IRedactorProvider 的實作,並設定可用的 redactors。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Compliance::Redaction::IRedactionBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRedaction (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Compliance.Redaction.IRedactionBuilder> configure);
static member AddRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Compliance.Redaction.IRedactionBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRedaction (services As IServiceCollection, configure As Action(Of IRedactionBuilder)) As IServiceCollection
參數
- services
- IServiceCollection
用來設定修訂的 IServiceCollection 實例。
- configure
- Action<IRedactionBuilder>
IRedactionBuilder的組態函式。
傳回
services
的值。
例外狀況
configure
null
。