共用方式為


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

適用於