Freigeben über


DefaultViewComponentFactory.ReleaseViewComponentAsync Methode

Definition

Gibt eine Ansichtskomponente instance asynchron frei.

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

Parameter

context
ViewComponentContext

Der Kontext, der dem zugeordnet ist component.

component
Object

Die Ansichtskomponente.

Gibt zurück

Eine ValueTask , die abgeschlossen wird, wenn die Ansichtskomponente freigegeben wurde.

Implementiert

Gilt für: