Partager via


IViewComponentActivator.ReleaseAsync(ViewComponentContext, Object) Méthode

Définition

Libère une instance ViewComponent.

public virtual System.Threading.Tasks.ValueTask ReleaseAsync (Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object viewComponent);
abstract member ReleaseAsync : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext * obj -> System.Threading.Tasks.ValueTask
override this.ReleaseAsync : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext * obj -> System.Threading.Tasks.ValueTask
Public Overridable Function ReleaseAsync (context As ViewComponentContext, viewComponent As Object) As ValueTask

Paramètres

context
ViewComponentContext

Objet ViewComponentContext associé au viewComponent.

viewComponent
Object

ViewComponent à libérer.

Retours

ValueTask qui se termine lorsque le composant d’affichage a été supprimé.

S’applique à