Freigeben über


ViewViewComponentResult.Execute(ViewComponentContext) Methode

Definition

Sucht eine durch ViewNameangegebene Ansicht und rendert sie. Wenn ViewName ist null, lautet"Default" der gesuchte Ansichtsname.

public:
 virtual void Execute(Microsoft::AspNetCore::Mvc::ViewComponents::ViewComponentContext ^ context);
public void Execute (Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context);
abstract member Execute : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext -> unit
override this.Execute : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext -> unit
Public Sub Execute (context As ViewComponentContext)

Parameter

context
ViewComponentContext

Der ViewComponentContext für die aktuelle Komponentenausführung.

Implementiert

Hinweise

Diese Methode ruft synchron auf und blockiert sie.ExecuteAsync(ViewComponentContext)

Gilt für: