C# Class Sakura.AspNetCore.Mvc.TagHelpers.SelectValueOptionTagHelper

Inheritance: Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
Afficher le fichier Open project: sgjsakura/AspNetCore Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
SetSelectedValue ( Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, string value, System.StringComparison comparison = DefaultSelectValueCompareMode ) : void

Method Details

GetSelectedValueCompareModeFromContext() protected méthode

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.
Résultat System.StringComparison

GetSelectedValueFromContext() protected méthode

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.
Résultat string

MarkAsSelected() protected méthode

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

Process() public méthode

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.
Résultat void