ViewComponent.View ViewComponent.View ViewComponent.View ViewComponent.View Method

Definition

Overloads

View() View() View() View()

Returns a result which will render the partial view with name "Default".

View(String) View(String) View(String) View(String)

Returns a result which will render the partial view with name viewName.

View<TModel>(TModel) View<TModel>(TModel) View<TModel>(TModel) View<TModel>(TModel)

Returns a result which will render the partial view with name "Default".

View<TModel>(String, TModel) View<TModel>(String, TModel) View<TModel>(String, TModel) View<TModel>(String, TModel)

Returns a result which will render the partial view with name viewName.

View() View() View() View()

Returns a result which will render the partial view with name "Default".

public:
 Microsoft::AspNetCore::Mvc::ViewComponents::ViewViewComponentResult ^ View();
public Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult View ();
member this.View : unit -> Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult
Public Function View () As ViewViewComponentResult

Returns

View(String) View(String) View(String) View(String)

Returns a result which will render the partial view with name viewName.

public:
 Microsoft::AspNetCore::Mvc::ViewComponents::ViewViewComponentResult ^ View(System::String ^ viewName);
public Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult View (string viewName);
member this.View : string -> Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult
Public Function View (viewName As String) As ViewViewComponentResult

Parameters

viewName
String String String String

The name of the partial view to render.

Returns

View<TModel>(TModel) View<TModel>(TModel) View<TModel>(TModel) View<TModel>(TModel)

Returns a result which will render the partial view with name "Default".

public:
generic <typename TModel>
 Microsoft::AspNetCore::Mvc::ViewComponents::ViewViewComponentResult ^ View(TModel model);
public Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult View<TModel> (TModel model);
member this.View : 'Model -> Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult
Public Function View(Of TModel) (model As TModel) As ViewViewComponentResult

Type Parameters

TModel

Parameters

model

The model object for the view.

Returns

View<TModel>(String, TModel) View<TModel>(String, TModel) View<TModel>(String, TModel) View<TModel>(String, TModel)

Returns a result which will render the partial view with name viewName.

public:
generic <typename TModel>
 Microsoft::AspNetCore::Mvc::ViewComponents::ViewViewComponentResult ^ View(System::String ^ viewName, TModel model);
public Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult View<TModel> (string viewName, TModel model);
member this.View : string * 'Model -> Microsoft.AspNetCore.Mvc.ViewComponents.ViewViewComponentResult
Public Function View(Of TModel) (viewName As String, model As TModel) As ViewViewComponentResult

Type Parameters

TModel

Parameters

viewName
String String String String

The name of the partial view to render.

model

The model object for the view.

Returns

Applies to