Share via


HtmlHelper.GeneratePassword(ModelExplorer, String, Object, Object) Method

Definition

Generate a password.

protected:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ GeneratePassword(Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, System::Object ^ value, System::Object ^ htmlAttributes);
protected virtual Microsoft.AspNetCore.Html.IHtmlContent GeneratePassword (Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, object htmlAttributes);
abstract member GeneratePassword : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * obj -> Microsoft.AspNetCore.Html.IHtmlContent
override this.GeneratePassword : Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Protected Overridable Function GeneratePassword (modelExplorer As ModelExplorer, expression As String, value As Object, htmlAttributes As Object) As IHtmlContent

Parameters

modelExplorer
ModelExplorer

The ModelExplorer.

expression
String

The expression.

value
Object

The password value.

htmlAttributes
Object

An Object that contains the HTML attributes for the element. Alternatively, an IDictionary<TKey,TValue> instance containing the HTML attributes.

Returns

The IHtmlContent.

Applies to