クラスサービスコレクション拡張

日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

MicrosoftにおけるSitecoreレンダリングエンジン関連サービスを設定する拡張手法。拡張s.DependencyInjection.IServiceCollection。

相続

System.Object

ServiceCollectionExtensions

名前空間
。AspNet.RenderingEngine.拡張

アセンブリ
。AspNet.RenderingEngine.dll

構文論

public static class ServiceCollectionExtensions : Object

方法

AddSitecoreRenderingEngine(IServiceCollection, Action)

Sitecoreレンダリングエンジンサービスを追加してMicrosoftに。拡張。DependencyInjection.IServiceCollection。

宣言

public static ISitecoreRenderingEngineBuilder AddSitecoreRenderingEngine(this IServiceCollection services, Action options = null)

パラメータ

種類

名称

概要

Microsoft。拡張。DependencyInjection.IServiceCollection

サービス

Microsoft。Extensions.DependencyInjection.IServiceCollectionにサービスを追加できます。

システム。アクション

<

RenderingEngineOptions

>

オプション

レンダリングエンジンのオプションを設定します。

返還

種類

概要

ISitecoreRenderingEngineBuilder

Microsoft.拡張。DependencyInjection.IServiceCollectionで、追加の呼び出しを連鎖させることができます。

ForwardHeaders(ISitecoreRenderingEngineBuilder, Action)

ヘッダーの転送を可能にします。

宣言

public static ISitecoreRenderingEngineBuilder ForwardHeaders(this ISitecoreRenderingEngineBuilder serviceBuilder, Action options = null)

パラメータ

種類

名称

概要

ISitecoreRenderingEngineBuilder

サービスビルダー

サービスを追加するための ISitecoreRenderingEngineBuilder 。

システム。アクション

<

ForwardHeadersOptions

>

オプション

ヘッダーの転送オプションの設定。

返還

種類

概要

ISitecoreRenderingEngineBuilder

Microsoft.拡張。DependencyInjection.IServiceCollectionで、追加の呼び出しを連鎖させることができます。

この記事を改善するための提案がある場合は、 お知らせください!