C# 클래스 Sakura.AspNetCore.Mvc.TagHelpers.SelectValueOptionTagHelper

상속: Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
파일 보기 프로젝트 열기: sgjsakura/AspNetCore 1 사용 예제들

공개 메소드들

메소드 설명
Process ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output ) : void

Synchronously executes the T:Microsoft.AspNet.Razor.TagHelpers.TagHelper with the given context and output.

보호된 메소드들

메소드 설명
GetSelectedValueCompareModeFromContext ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context ) : System.StringComparison

Try to get the selected value comparison mode from the context. If no mode is set, this method will returns DefaultSelectValueCompareMode.

GetSelectedValueFromContext ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context ) : string

Try to get the selected value string from the context. If no selected value is set, this method will returns null.

MarkAsSelected ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output ) : void

Make the current option as selected.

비공개 메소드들

메소드 설명
SetSelectedValue ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, string value, System.StringComparison comparison = DefaultSelectValueCompareMode ) : void

메소드 상세

GetSelectedValueCompareModeFromContext() 보호된 메소드

Try to get the selected value comparison mode from the context. If no mode is set, this method will returns DefaultSelectValueCompareMode.
protected GetSelectedValueCompareModeFromContext ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context ) : System.StringComparison
context Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext The tag helper context.
리턴 System.StringComparison

GetSelectedValueFromContext() 보호된 메소드

Try to get the selected value string from the context. If no selected value is set, this method will returns null.
protected GetSelectedValueFromContext ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context ) : string
context Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext The tag helper context.
리턴 string

MarkAsSelected() 보호된 메소드

Make the current option as selected.
protected MarkAsSelected ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output ) : void
output Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput Tag output context.
리턴 void

Process() 공개 메소드

Synchronously executes the T:Microsoft.AspNet.Razor.TagHelpers.TagHelper with the given context and output.
public Process ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output ) : void
context Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext Contains information associated with the current HTML tag.
output Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput A stateful HTML element used to generate an HTML tag.
리턴 void