OptionTagHelper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ITagHelper implementation targeting <option> elements.
public ref class OptionTagHelper : Microsoft::AspNetCore::Razor::TagHelpers::TagHelper
public class OptionTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
type OptionTagHelper = class
inherit TagHelper
Public Class OptionTagHelper
Inherits TagHelper
- Inheritance
Remarks
This ITagHelper works in conjunction with SelectTagHelper. It reads elements content but does not modify that content. The only modification it makes is to add a selected attribute in some cases.
Constructors
| OptionTagHelper(IHtmlGenerator) |
Creates a new OptionTagHelper. |
Properties
| Generator |
Gets the IHtmlGenerator used to generate the OptionTagHelper's output. |
| Order |
When a set of ITagHelpers are executed, their Init(TagHelperContext)'s are first invoked in the specified Order; then their ProcessAsync(TagHelperContext, TagHelperOutput)'s are invoked in the specified Order. Lower values are executed first. |
| Value |
Specifies a value for the <option> element. |
| ViewContext |
Gets the ViewContext of the executing view. |
Methods
| Init(TagHelperContext) |
Initializes the ITagHelper with the given |
| Process(TagHelperContext, TagHelperOutput) |
Synchronously executes the TagHelper with the given |
| ProcessAsync(TagHelperContext, TagHelperOutput) |
Asynchronously executes the TagHelper with the given |