Share via


InputExtensions.PasswordFor Metodo

Definizione

Overload

PasswordFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IDictionary<String,Object>)

Restituisce un elemento di input password per ogni proprietà nell'oggetto rappresentato dall'espressione specificata usando gli attributi HTML specificati.

PasswordFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Object)

Restituisce un elemento di input password per ogni proprietà nell'oggetto rappresentato dall'espressione specificata usando gli attributi HTML specificati.

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

Restituisce un elemento di input password per ogni proprietà nell'oggetto rappresentato dall'espressione specificata.

PasswordFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IDictionary<String,Object>)

Restituisce un elemento di input password per ogni proprietà nell'oggetto rappresentato dall'espressione specificata usando gli attributi HTML specificati.

public static System.Web.Mvc.MvcHtmlString PasswordFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member PasswordFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function PasswordFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parametri di tipo

TModel

Tipo del modello.

TProperty

Tipo di valore.

Parametri

htmlHelper
HtmlHelper<TModel>

Istanza dell'helper HTML estesa da questo metodo.

expression
Expression<Func<TModel,TProperty>>

Espressione che identifica l'oggetto contenente le proprietà di cui eseguire il rendering.

htmlAttributes
IDictionary<String,Object>

Dizionario contenente gli attributi HTML da impostare per l'elemento.

Restituisce

Elemento di input HTML il cui attributo di tipo è impostato su "password" per ogni proprietà nell'oggetto rappresentato dall'espressione specificata usando gli attributi HTML specificati.

Eccezioni

Il parametro expression è null.

Si applica a

PasswordFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Object)

Restituisce un elemento di input password per ogni proprietà nell'oggetto rappresentato dall'espressione specificata usando gli attributi HTML specificati.

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

Parametri di tipo

TModel

Tipo del modello.

TProperty

Tipo di valore.

Parametri

htmlHelper
HtmlHelper<TModel>

Istanza dell'helper HTML estesa da questo metodo.

expression
Expression<Func<TModel,TProperty>>

Espressione che identifica l'oggetto contenente le proprietà di cui eseguire il rendering.

htmlAttributes
Object

Oggetto che contiene gli attributi HTML da impostare per l'elemento.

Restituisce

Elemento di input HTML il cui attributo di tipo è impostato su "password" per ogni proprietà nell'oggetto rappresentato dall'espressione specificata usando gli attributi HTML specificati.

Eccezioni

Il parametro expression è null.

Si applica a

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

Restituisce un elemento di input password per ogni proprietà nell'oggetto rappresentato dall'espressione specificata.

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

Parametri di tipo

TModel

Tipo del modello.

TProperty

Tipo di valore.

Parametri

htmlHelper
HtmlHelper<TModel>

Istanza dell'helper HTML estesa da questo metodo.

expression
Expression<Func<TModel,TProperty>>

Espressione che identifica l'oggetto contenente le proprietà di cui eseguire il rendering.

Restituisce

Elemento HTML input il cui attributo type è impostato su "password" per ogni proprietà dell'oggetto rappresentato dall'espressione specificata.

Eccezioni

Il parametro expression è null.

Si applica a