Renderer.CreateComponentState(Int32, IComponent, ComponentState) Méthode

Définition

Crée un ComponentState instance pour suivre l’état associé à un composant nouvellement instancié. Cette opération est appelée avant que le composant ne soit initialisé et suivi dans le Renderer. Les sous-classes peuvent remplacer cette méthode pour utiliser leurs propres sous-classes de ComponentState.

protected virtual Microsoft.AspNetCore.Components.Rendering.ComponentState CreateComponentState (int componentId, Microsoft.AspNetCore.Components.IComponent component, Microsoft.AspNetCore.Components.Rendering.ComponentState? parentComponentState);
abstract member CreateComponentState : int * Microsoft.AspNetCore.Components.IComponent * Microsoft.AspNetCore.Components.Rendering.ComponentState -> Microsoft.AspNetCore.Components.Rendering.ComponentState
override this.CreateComponentState : int * Microsoft.AspNetCore.Components.IComponent * Microsoft.AspNetCore.Components.Rendering.ComponentState -> Microsoft.AspNetCore.Components.Rendering.ComponentState
Protected Overridable Function CreateComponentState (componentId As Integer, component As IComponent, parentComponentState As ComponentState) As ComponentState

Paramètres

componentId
Int32

ID du composant nouvellement créé.

component
IComponent

Instance du composant.

parentComponentState
ComponentState

ComponentState associé au composant parent ou null s’il s’agit d’un composant racine.

Retours

pour ComponentState le nouveau composant.

S’applique à