StaticHtmlRenderer.BeginRenderingComponent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BeginRenderingComponent(IComponent, ParameterView) |
Adds a root component and begins rendering it. |
BeginRenderingComponent(Type, ParameterView) |
Adds a root component of the specified type and begins rendering it. |
BeginRenderingComponent(IComponent, ParameterView)
- Source:
- StaticHtmlRenderer.cs
- Source:
- StaticHtmlRenderer.cs
Adds a root component and begins rendering it.
public Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent BeginRenderingComponent (Microsoft.AspNetCore.Components.IComponent component, Microsoft.AspNetCore.Components.ParameterView initialParameters);
member this.BeginRenderingComponent : Microsoft.AspNetCore.Components.IComponent * Microsoft.AspNetCore.Components.ParameterView -> Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent
Public Function BeginRenderingComponent (component As IComponent, initialParameters As ParameterView) As HtmlRootComponent
Parameters
- component
- IComponent
The root component instance to be added and rendered. This must not already be associated with any renderer.
- initialParameters
- ParameterView
Parameters for the component.
Returns
An HtmlRootComponent that can be used to obtain the rendered HTML.
Applies to
BeginRenderingComponent(Type, ParameterView)
- Source:
- StaticHtmlRenderer.cs
- Source:
- StaticHtmlRenderer.cs
Adds a root component of the specified type and begins rendering it.
public Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent BeginRenderingComponent (Type componentType, Microsoft.AspNetCore.Components.ParameterView initialParameters);
member this.BeginRenderingComponent : Type * Microsoft.AspNetCore.Components.ParameterView -> Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent
Public Function BeginRenderingComponent (componentType As Type, initialParameters As ParameterView) As HtmlRootComponent
Parameters
- componentType
- Type
The component type. This must implement IComponent.
- initialParameters
- ParameterView
Parameters for the component.
Returns
An HtmlRootComponent that can be used to obtain the rendered HTML.