Compartilhar via


DefaultViewComponentFactory.ReleaseViewComponentAsync Método

Definição

Libera uma instância de componente de exibição de forma assíncrona.

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

Parâmetros

context
ViewComponentContext

O contexto associado ao component.

component
Object

O componente de exibição.

Retornos

Um ValueTask que é concluído quando o componente de exibição é liberado.

Implementações

Aplica-se a