HtmlHelper.Password(String, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an <input> element of type "password" for the specified expression
. Adds a
"value" attribute containing the first non-null
value in:
the value
parameter, or
the htmlAttributes
dictionary entry with key "value".
public:
virtual Microsoft::AspNetCore::Html::IHtmlContent ^ Password(System::String ^ expression, System::Object ^ value, System::Object ^ htmlAttributes);
public Microsoft.AspNetCore.Html.IHtmlContent Password (string expression, object value, object htmlAttributes);
abstract member Password : string * obj * obj -> Microsoft.AspNetCore.Html.IHtmlContent
override this.Password : string * obj * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Public Function Password (expression As String, value As Object, htmlAttributes As Object) As IHtmlContent
Parameters
- expression
- String
Expression name, relative to the current model.
- value
- Object
If non-null
, value to include in the element.
- htmlAttributes
- Object
An Object that contains the HTML attributes for the element. Alternatively, an IDictionary<TKey,TValue> instance containing the HTML attributes.
Returns
A new IHtmlContent containing the <input> element.