Share via


Renderer.AssignRootComponentId(IComponent) 方法

定義

IComponentRenderer 產生關聯,並指派在 範圍內唯一的 Renderer 識別碼。

protected public:
 int AssignRootComponentId(Microsoft::AspNetCore::Components::IComponent ^ component);
protected internal int AssignRootComponentId (Microsoft.AspNetCore.Components.IComponent component);
member this.AssignRootComponentId : Microsoft.AspNetCore.Components.IComponent -> int
Protected Friend Function AssignRootComponentId (component As IComponent) As Integer

參數

component
IComponent

元件。

傳回

元件的指派識別碼。

適用於