HtmlHelper.GeneratePassword(ModelExplorer, String, Object, Object) 方法

定义

生成密码。

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

参数

modelExplorer
ModelExplorer

ModelExplorer

expression
String

表达式。

value
Object

密码值。

htmlAttributes
Object

一个 Object ,它包含 元素的 HTML 属性。 或者,一个 IDictionary<TKey,TValue> 包含 HTML 属性的实例。

返回

IHtmlContent

适用于