ComponentState(Renderer, Int32, IComponent, ComponentState) 构造函数

定义

构造 的 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)

参数

renderer
Renderer

Microsoft.AspNetCore.Components.Rendering.ComponentState.Renderer应与新实例关联的 。

componentId
Int32

的外部可见标识符 IComponent。 标识符在 的上下文中必须是唯一的 Microsoft.AspNetCore.Components.Rendering.ComponentState.Renderer

component
IComponent

IComponent正在跟踪其状态的 。

parentComponentState
ComponentState

父组件的 ; ComponentState 如果这是根组件,则为 null。

适用于