Compartir a través de


IViewComponentFactory.ReleaseViewComponentAsync Método

Definición

Libera una instancia de componente de vista de forma asincrónica.

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

Parámetros

context
ViewComponentContext

Contexto asociado a component.

component
Object

Componente de vista.

Devoluciones

que ValueTask se completa cuando se ha liberado el componente de vista.

Se aplica a