HtmlHelper<TModel>.PasswordFor<TResult> メソッド

定義

指定した の <"password" 型の入力> 要素を返します expression。 キー "value" を持つディクショナリ エントリを htmlAttributes 含む "value" 属性を追加します (存在する場合)。

public:
generic <typename TResult>
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ PasswordFor(System::Linq::Expressions::Expression<Func<TModel, TResult> ^> ^ expression, System::Object ^ htmlAttributes);
public Microsoft.AspNetCore.Html.IHtmlContent PasswordFor<TResult> (System.Linq.Expressions.Expression<Func<TModel,TResult>> expression, object htmlAttributes);
abstract member PasswordFor : System.Linq.Expressions.Expression<Func<'Model, 'Result>> * obj -> Microsoft.AspNetCore.Html.IHtmlContent
override this.PasswordFor : System.Linq.Expressions.Expression<Func<'Model, 'Result>> * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Public Function PasswordFor(Of TResult) (expression As Expression(Of Func(Of TModel, TResult)), htmlAttributes As Object) As IHtmlContent

型パラメーター

TResult

結果の expression 型。

パラメーター

expression
Expression<Func<TModel,TResult>>

現在のモデルに対して評価される式。

htmlAttributes
Object

Object要素の HTML 属性を格納している 。 または、HTML 属性を IDictionary<TKey,TValue> 含むインスタンスです。

戻り値

入力>要素を<含む新しい IHtmlContent

実装

適用対象