Dela via


DefaultHtmlGenerator.GeneratePassword Method

Definition

Generate a <input type="password"> element

public:
 virtual Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GeneratePassword(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression, System::Object ^ value, System::Object ^ htmlAttributes);
public virtual Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePassword (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression, object value, object htmlAttributes);
abstract member GeneratePassword : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
override this.GeneratePassword : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string * obj * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Public Overridable Function GeneratePassword (viewContext As ViewContext, modelExplorer As ModelExplorer, expression As String, value As Object, htmlAttributes As Object) As TagBuilder

Parameters

viewContext
ViewContext

A ViewContext instance for the current scope.

modelExplorer
ModelExplorer

The ModelExplorer for the expression.

expression
String

Expression name, relative to the current model.

value
Object

Value used to prefill the checkbox

htmlAttributes
Object

An Object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the Object. This Object is typically created using Object initializer syntax. Alternatively, an IDictionary<TKey,TValue> instance containing the route parameters.

Returns

Implements

Applies to