IViewComponentFactory.ReleaseViewComponentAsync 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.
Releases a view component instance asynchronously.
public virtual System.Threading.Tasks.ValueTask ReleaseViewComponentAsync (Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object component);
abstract member ReleaseViewComponentAsync : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext * obj -> System.Threading.Tasks.ValueTask
override this.ReleaseViewComponentAsync : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext * obj -> System.Threading.Tasks.ValueTask
Public Overridable Function ReleaseViewComponentAsync (context As ViewComponentContext, component As Object) As ValueTask
Parameters
- context
- ViewComponentContext
The context associated with the component
.
- component
- Object
The view component.
Returns
A ValueTask that completes when the view component has been released.