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