Sdílet prostřednictvím


DefaultViewComponentFactory.ReleaseViewComponentAsync Metoda

Definice

Uvolní instanci komponenty zobrazení asynchronně.

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

Parametry

context
ViewComponentContext

Kontext přidružený k objektu component.

component
Object

Komponenta zobrazení.

Návraty

A ValueTask , která se dokončí po vydání komponenty zobrazení.

Implementuje

Platí pro