Aracılığıyla paylaş


NameExtensions.NameFor<TModel,TProperty> Yöntem

Tanım

İfadeyle temsil edilen nesnenin tam HTML alan adını alır.

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

Tür Parametreleri

TModel

Modelin türü.

TProperty

Özelliğin türü.

Parametreler

html
HtmlHelper<TModel>

Bu yöntemin genişletir HTML yardımcı örneği.

expression
Expression<Func<TModel,TProperty>>

Adı içeren nesneyi tanımlayan ifade.

Döndürülenler

İfadeyle temsil edilen nesnenin tam HTML alan adı.

Şunlara uygulanır