Aracılığıyla paylaş


DefaultHtmlGenerator.AddMaxLengthAttribute Yöntem

Tanım

öğesine tagBuilderbir maxlength öznitelik ekler.

protected:
 virtual void AddMaxLengthAttribute(Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ viewData, Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ tagBuilder, Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ modelExplorer, System::String ^ expression);
protected virtual void AddMaxLengthAttribute (Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, Microsoft.AspNetCore.Mvc.Rendering.TagBuilder tagBuilder, Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer modelExplorer, string expression);
abstract member AddMaxLengthAttribute : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary * Microsoft.AspNetCore.Mvc.Rendering.TagBuilder * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string -> unit
override this.AddMaxLengthAttribute : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary * Microsoft.AspNetCore.Mvc.Rendering.TagBuilder * Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer * string -> unit
Protected Overridable Sub AddMaxLengthAttribute (viewData As ViewDataDictionary, tagBuilder As TagBuilder, modelExplorer As ModelExplorer, expression As String)

Parametreler

viewData
ViewDataDictionary

ViewDataDictionary Geçerli kapsam için bir örnek.

tagBuilder
TagBuilder

Bir TagBuilder örnek.

modelExplorer
ModelExplorer

ModelExplorer için.expression

expression
String

geçerli modele göre ifade adı.

Şunlara uygulanır