RedactionServiceCollectionExtensions.AddRedaction 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddRedaction(IServiceCollection) | |
AddRedaction(IServiceCollection, Action<IRedactionBuilder>) |
在 中IServiceCollection註冊 的實作IRedactorProvider,並設定可用的重新執行者。 |
AddRedaction(IServiceCollection)
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,並設定可用的重新執行者。
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
。