Bagikan melalui


DefaultHtmlGenerator.GeneratePassword Metode

Definisi

<Membuat elemen type="password"> input

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

Parameter

viewContext
ViewContext

Instans ViewContext untuk cakupan saat ini.

modelExplorer
ModelExplorer

ModelExplorer untuk expression.

expression
String

Nama ekspresi, relatif terhadap model saat ini.

value
Object

Nilai yang digunakan untuk mengisi kotak centang terlebih dahulu

htmlAttributes
Object

Object yang berisi parameter untuk rute. Parameter diambil melalui refleksi dengan memeriksa properti .Object Ini Object biasanya dibuat menggunakan Object sintaks penginisialisasi. Atau, instans yang IDictionary<TKey,TValue> berisi parameter rute.

Mengembalikan

Penerapan

Berlaku untuk