Udostępnij za pośrednictwem


IViewComponentFactory.ReleaseViewComponentAsync Metoda

Definicja

Zwalnia wystąpienie składnika widoku asynchronicznie.

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

Parametry

context
ViewComponentContext

Kontekst skojarzony z elementem component.

component
Object

Składnik widoku.

Zwraca

Element ValueTask , który zostanie ukończony po wydaniu składnika widoku.

Dotyczy