Share via


ComponentState Class

Definition

Tracks the rendering state associated with an IComponent instance within the context of a Microsoft.AspNetCore.Components.Rendering.ComponentState.Renderer. This is an internal implementation detail of Microsoft.AspNetCore.Components.Rendering.ComponentState.Renderer.

public class ComponentState : IAsyncDisposable
type ComponentState = class
    interface IAsyncDisposable
Public Class ComponentState
Implements IAsyncDisposable
Inheritance
ComponentState
Implements

Constructors

ComponentState(Renderer, Int32, IComponent, ComponentState)

Constructs an instance of ComponentState.

Properties

Component

Gets the component instance.

ComponentId

Gets the component ID.

LogicalParentComponentState

Gets the ComponentState of the logical parent component, or null if this is a root component.

ParentComponentState

Gets the ComponentState of the parent component, or null if this is a root component.

Methods

DisposeAsync()

Disposes this instance and its associated component.

Applies to