ComponentState(Renderer, Int32, IComponent, ComponentState) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- componentId
- Int32
The externally visible identifier for the IComponent. The identifier must be unique in the context of the 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.