ComponentState(Renderer, Int32, IComponent, ComponentState) Constructor

Definition

Constructs an instance of ComponentState.

C#
public ComponentState (Microsoft.AspNetCore.Components.RenderTree.Renderer renderer, int componentId, Microsoft.AspNetCore.Components.IComponent component, Microsoft.AspNetCore.Components.Rendering.ComponentState? parentComponentState);

Parameters

renderer
Renderer

The Microsoft.AspNetCore.Components.Rendering.ComponentState.Renderer with which the new instance should be associated.

componentId
Int32

The externally visible identifier for the IComponent. The identifier must be unique in the context of the Microsoft.AspNetCore.Components.Rendering.ComponentState.Renderer.

component
IComponent

The IComponent whose state is being tracked.

parentComponentState
ComponentState

The ComponentState for the parent component, or null if this is a root component.

Applies to

Tuote Versiot
ASP.NET Core 8.0, 9.0