Share via


ViewViewComponentResult.Execute(ViewComponentContext) Metoda

Definice

Vyhledá a vykreslí zobrazení určené nástrojem ViewName. Pokud ViewName je null, název hledaného zobrazení je"Default".

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)

Parametry

context
ViewComponentContext

Pro ViewComponentContext aktuální spuštění komponenty.

Implementuje

Poznámky

Tato metoda synchronně volá a blokuje na ExecuteAsync(ViewComponentContext).

Platí pro