Udostępnij za pośrednictwem


DefaultViewComponentFactory.ReleaseViewComponentAsync Metoda

Definicja

Zwalnia wystąpienie składnika widoku asynchronicznie.

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

Kontekst skojarzony z elementem component.

component
Object

Składnik widoku.

Zwraca

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

Implementuje

Dotyczy