IViewComponentActivator.ReleaseAsync(ViewComponentContext, Object) Method

Definition

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.

Applies to