다음을 통해 공유


DefaultHtmlGenerator.AddPlaceholderAttribute 메서드

정의

자리 표시자 특성을 에 tagBuilder추가합니다.

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

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

적용 대상