DefaultViewComponentHelper Class¶
Constructors¶
-
DefaultViewComponentHelper
(Microsoft.AspNet.Mvc.ViewComponents.IViewComponentDescriptorCollectionProvider, Microsoft.AspNet.Mvc.ViewComponents.IViewComponentSelector, Microsoft.AspNet.Mvc.ViewComponents.IViewComponentInvokerFactory)¶ Arguments: - descriptorProvider (Microsoft.AspNet.Mvc.ViewComponents.IViewComponentDescriptorCollectionProvider) –
- selector (Microsoft.AspNet.Mvc.ViewComponents.IViewComponentSelector) –
- invokerFactory (Microsoft.AspNet.Mvc.ViewComponents.IViewComponentInvokerFactory) –
public DefaultViewComponentHelper(IViewComponentDescriptorCollectionProvider descriptorProvider, IViewComponentSelector selector, IViewComponentInvokerFactory invokerFactory)
-
Methods¶
-
Contextualize
(Microsoft.AspNet.Mvc.ViewContext)¶ Arguments: - viewContext (Microsoft.AspNet.Mvc.ViewContext) –
public void Contextualize(ViewContext viewContext)
-
Invoke
(System.String, System.Object[])¶ Arguments: - name (System.String) –
- arguments (System.Object[]) –
Return type: Microsoft.AspNet.Mvc.Rendering.HtmlString
public HtmlString Invoke(string name, params object[] arguments)
-
Invoke
(System.Type, System.Object[]) Arguments: - componentType (System.Type) –
- arguments (System.Object[]) –
Return type: Microsoft.AspNet.Mvc.Rendering.HtmlString
public HtmlString Invoke(Type componentType, params object[] arguments)
-
InvokeAsync
(System.String, System.Object[])¶ Arguments: - name (System.String) –
- arguments (System.Object[]) –
Return type: System.Threading.Tasks.Task{Microsoft.AspNet.Mvc.Rendering.HtmlString}
public Task<HtmlString> InvokeAsync(string name, params object[] arguments)
-
InvokeAsync
(System.Type, System.Object[]) Arguments: - componentType (System.Type) –
- arguments (System.Object[]) –
Return type: System.Threading.Tasks.Task{Microsoft.AspNet.Mvc.Rendering.HtmlString}
public Task<HtmlString> InvokeAsync(Type componentType, params object[] arguments)
-
RenderInvoke
(System.String, System.Object[])¶ Arguments: - name (System.String) –
- arguments (System.Object[]) –
public void RenderInvoke(string name, params object[] arguments)
-
RenderInvoke
(System.Type, System.Object[]) Arguments: - componentType (System.Type) –
- arguments (System.Object[]) –
public void RenderInvoke(Type componentType, params object[] arguments)
-
RenderInvokeAsync
(System.String, System.Object[])¶ Arguments: - name (System.String) –
- arguments (System.Object[]) –
Return type: System.Threading.Tasks.Task
public Task RenderInvokeAsync(string name, params object[] arguments)
-
RenderInvokeAsync
(System.Type, System.Object[]) Arguments: - componentType (System.Type) –
- arguments (System.Object[]) –
Return type: System.Threading.Tasks.Task
public Task RenderInvokeAsync(Type componentType, params object[] arguments)
-