Share via


StaticHtmlRenderer.BeginRenderingComponent Méthode

Définition

Surcharges

BeginRenderingComponent(IComponent, ParameterView)

Ajoute un composant racine et commence à le rendre.

BeginRenderingComponent(Type, ParameterView)

Ajoute un composant racine du type spécifié et commence à le rendre.

BeginRenderingComponent(IComponent, ParameterView)

Source:
StaticHtmlRenderer.cs

Ajoute un composant racine et commence à le rendre.

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

Paramètres

component
IComponent

Le composant racine instance être ajouté et rendu. Cela ne doit pas déjà être associé à un renderer.

initialParameters
ParameterView

Paramètres du composant.

Retours

HtmlRootComponent qui peut être utilisé pour obtenir le code HTML rendu.

S’applique à

BeginRenderingComponent(Type, ParameterView)

Source:
StaticHtmlRenderer.cs

Ajoute un composant racine du type spécifié et commence à le rendre.

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

Paramètres

componentType
Type

Type de composant. Cette opération doit implémenter IComponent.

initialParameters
ParameterView

Paramètres du composant.

Retours

HtmlRootComponent qui peut être utilisé pour obtenir le code HTML rendu.

S’applique à