クラスバインディング拡張

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

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

Sitecoreレイアウトデータのモデルバインディングをサポートする拡張機能。

相続

System.Object

バインディング拡張

名前空間
。AspNet.RenderingEngine.Binding.Extensions

アセンブリ
。AspNet.RenderingEngine.dll

構文論

public static class BindingExtensions : Object

方法

AddSitecoreModelBinderProviders(MvcOptions)

MicrosoftにデフォルトのSitecoreモデルバインダープロバイダーを追加します。AspNetCore.Mvc.MvcOptions。

宣言

public static void AddSitecoreModelBinderProviders(this MvcOptions options)

パラメータ

種類

名称

概要

Microsoft。AspNetCore.Mvc.MvcOptions

オプション

Microsoft。AspNetCore.Mvc.Mvc.MvcOptionsの設定。

GetModelBinder(ModelBinderProviderContext)

指定されたバインディングソースに対してSitecoreLayoutModelBinderを取得します。

宣言

public static BinderTypeModelBinder GetModelBinder(this ModelBinderProviderContext context) where TSource : SitecoreLayoutBindingSource

パラメータ

種類

名称

概要

Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext

背景

Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContextインスタンス。

返還

種類

概要

Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinder

Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinderインスタンス。

型パラメータ

名称

概要

ソース

結合源の種類。

GetModelBinder<TSource, TType>(ModelBinderProviderContext)

指定されたモデルタイプとバインディングソースに対してSitecoreLayoutModelBinderを取得します。

宣言

public static BinderTypeModelBinder GetModelBinder<TSource, TType>(this ModelBinderProviderContext context) where TSource : SitecoreLayoutBindingSource

パラメータ

種類

名称

概要

Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext

背景

Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContextインスタンス。

返還

種類

概要

Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinder

Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinderインスタンス。

型パラメータ

名称

概要

ソース

結合源の種類。

TType

どのモデルに割り当てるか。

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