ValueExtensions.ValueFor メソッド

定義

オーバーロード

ValueFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

ASP.NET MVC モデル バインダーおよびテンプレートと互換性のあるカスタム HTML マークアップを作成するメカニズムを提供します。

ValueFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String)

ASP.NET MVC モデル バインダーおよびテンプレートと互換性のあるカスタム HTML マークアップを作成するメカニズムを提供します。

ValueFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

ASP.NET MVC モデル バインダーおよびテンプレートと互換性のあるカスタム HTML マークアップを作成するメカニズムを提供します。

public static System.Web.Mvc.MvcHtmlString ValueFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> html, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression);
static member ValueFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValueFor(Of TModel, TProperty) (html As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty))) As MvcHtmlString

型パラメーター

TModel

モデル。

TProperty

プロパティ。

パラメーター

html
HtmlHelper<TModel>

このメソッドによって拡張される HTML ヘルパー インスタンス。

expression
Expression<Func<TModel,TProperty>>

公開するプロパティを格納しているオブジェクトを識別する式。

戻り値

値の HTML マークアップ。

適用対象

ValueFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String)

ASP.NET MVC モデル バインダーおよびテンプレートと互換性のあるカスタム HTML マークアップを作成するメカニズムを提供します。

public static System.Web.Mvc.MvcHtmlString ValueFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> html, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, string format);
static member ValueFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ValueFor(Of TModel, TProperty) (html As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), format As String) As MvcHtmlString

型パラメーター

TModel

モデル。

TProperty

プロパティ。

パラメーター

html
HtmlHelper<TModel>

このメソッドによって拡張される HTML ヘルパー インスタンス。

expression
Expression<Func<TModel,TProperty>>

公開するプロパティを格納しているオブジェクトを識別する式。

format
String

書式指定文字列。

戻り値

値の HTML マークアップ。

適用対象