DefaultViewComponentFactory.ReleaseViewComponentAsync Method

Definition

Releases a view component instance asynchronously.

public 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 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.

Implements

Applies to