Share via


ComponentState(Renderer, Int32, IComponent, ComponentState) Constructor

Definition

Constructs an instance of 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)

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