OptionTagHelper.ProcessAsync(TagHelperContext, TagHelperOutput) Method
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.
Asynchronously executes the TagHelper with the given context
and
output
.
public:
override System::Threading::Tasks::Task ^ ProcessAsync(Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContext ^ context, Microsoft::AspNetCore::Razor::TagHelpers::TagHelperOutput ^ output);
public override System.Threading.Tasks.Task ProcessAsync (Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output);
override this.ProcessAsync : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext * Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput -> System.Threading.Tasks.Task
Public Overrides Function ProcessAsync (context As TagHelperContext, output As TagHelperOutput) As Task
Parameters
- context
- TagHelperContext
Contains information associated with the current HTML tag.
- output
- TagHelperOutput
A stateful HTML element used to generate an HTML tag.
Returns
A Task that on completion updates the output
.
Remarks
Does nothing unless Items contains a SelectTagHelperType entry and that entry is a non-null
Microsoft.AspNetCore.Mvc.TagHelpers.CurrentValues instance. Also does nothing if the associated <option> is already selected.