クラスコントローラーエンドポイント拡張

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

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

Microsoftでコントローラーを使用する拡張メソッドが含まれています。AspNetCore.Routing.IEndpointRouteBuilder。

相続

System.Object

ControllerEndpointExtensions

名前空間
。AspNet.RenderingEngine.ローカライズ

アセンブリ
。AspNet.RenderingEngine.dll

構文論

public static class ControllerEndpointExtensions : Object

方法

MapSitecoreLocalizedRoute(IEndpointRouteBuilder, String, String, String)

言語埋め込みプレフィックスをサポートするデフォルトのエンドポイントを追加してください。Http://localhost/da-DK/homeのように。

宣言

public static IEndpointConventionBuilder MapSitecoreLocalizedRoute(this IEndpointRouteBuilder endpoints, string routeName, string action, string controller)

パラメータ

種類

名称

概要

Microsoft.AspNetCore.Routing.IEndpointRouteBuilder

終点

Microsoft.AspNetCore.Routing.IEndpointRouteBuilder パラメータ。

System.String

ルート名

ルートの名前。

System.String

作戦

デフォルトの行動です。

System.String

コントローラー

デフォルトのコントローラーです。

返還

種類

概要

Microsoft。AspNetCore.Builder.IEndpointConventionBuilder

Microsoft。AspNetCore.Builder.ControllerActionEndpointConventionBuilderは、このルートのコントローラーアクションに関連するエンドポイント用です。

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