ViewViewComponentResult.Execute(ViewComponentContext) Method

Definition

Locates and renders a view specified by ViewName. If ViewName is null, then the view name searched for is"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)

Parameters

context
ViewComponentContext

The ViewComponentContext for the current component execution.

Implements

Remarks

This method synchronously calls and blocks on ExecuteAsync(ViewComponentContext).

Applies to