다음을 통해 공유


DefaultHtmlGenerator.AddMaxLengthAttribute 메서드

정의

maxlength 에 특성을 추가합니다tagBuilder.

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)

매개 변수

viewData
ViewDataDictionary

ViewDataDictionary 현재 scope 대한 instance.

tagBuilder
TagBuilder

TagBuilder 인스턴스입니다.

modelExplorer
ModelExplorer

ModelExplorer에 대한 expression입니다.

expression
String

현재 모델을 기준으로 하는 식 이름입니다.

적용 대상