Share via


ComponentState(Renderer, Int32, IComponent, ComponentState) Constructeur

Définition

Construit un instance de ComponentState.

public ComponentState (Microsoft.AspNetCore.Components.RenderTree.Renderer renderer, int componentId, Microsoft.AspNetCore.Components.IComponent component, Microsoft.AspNetCore.Components.Rendering.ComponentState? parentComponentState);
new Microsoft.AspNetCore.Components.Rendering.ComponentState : Microsoft.AspNetCore.Components.RenderTree.Renderer * int * Microsoft.AspNetCore.Components.IComponent * Microsoft.AspNetCore.Components.Rendering.ComponentState -> Microsoft.AspNetCore.Components.Rendering.ComponentState
Public Sub New (renderer As Renderer, componentId As Integer, component As IComponent, parentComponentState As ComponentState)

Paramètres

renderer
Renderer

Microsoft.AspNetCore.Components.Rendering.ComponentState.Renderer auquel le nouveau instance doit être associé.

componentId
Int32

Identificateur visible externement pour .IComponent L’identificateur doit être unique dans le contexte de .Microsoft.AspNetCore.Components.Rendering.ComponentState.Renderer

component
IComponent

IComponent dont l’état est suivi.

parentComponentState
ComponentState

ComponentState pour le composant parent ou null s’il s’agit d’un composant racine.

S’applique à