クラスHttpContextExtensions
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Microsoftをサポートする拡張機能メソッド。AspNetCore.Http.HttpContext。
相続
System.Object
HttpContext拡張
名前空間。AspNet.RenderingEngine
アセンブリ。AspNet.RenderingEngine.dll
構文論
public static class HttpContextExtensions : Object
方法
GetSitecoreRenderingContext(HttpContext)
MicrosoftからISitecoreRenderingContextを取得しています。AspNetCore.Http.HttpContext。
宣言
public static ISitecoreRenderingContext GetSitecoreRenderingContext(this HttpContext context)
パラメータ
種類
名称
概要
Microsoft。AspNetCore.http.HttpContext
背景
Microsoft.AspNetCore.Http.HttpContextインスタンスからSitecoreレンダリングコンテキストを取得します。
返還
種類
概要
ISitecoreRenderingContext
ISitecoreRenderingContextインスタンスです。
SetSitecoreRenderingContext(HttpContext, ISitecoreRenderingContext)
現在のMicrosoft.にISitecoreRenderingContextを設定します。AspNetCore.Http.HttpContext.featuresコレクション。
宣言
public static void SetSitecoreRenderingContext(this HttpContext context, ISitecoreRenderingContext renderingContext)
パラメータ
種類
名称
概要
Microsoft。AspNetCore.http.HttpContext
背景
現在のMicrosoft。AspNetCore.http.HttpContext。
ISitecoreRenderingContext
レンダリングコンテキスト
ISitecoreRenderingContextをフィーチャーコレクションに保存します。