StaticHtmlRenderer.BeginRenderingComponent 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| BeginRenderingComponent(IComponent, ParameterView) |
加入根元件並開始轉譯。 |
| BeginRenderingComponent(Type, ParameterView) |
加入指定型別的根元件,並開始呈現它。 |
BeginRenderingComponent(IComponent, ParameterView)
加入根元件並開始轉譯。
public Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent BeginRenderingComponent(Microsoft.AspNetCore.Components.IComponent component, Microsoft.AspNetCore.Components.ParameterView initialParameters);
member this.BeginRenderingComponent : Microsoft.AspNetCore.Components.IComponent * Microsoft.AspNetCore.Components.ParameterView -> Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent
Public Function BeginRenderingComponent (component As IComponent, initialParameters As ParameterView) As HtmlRootComponent
參數
- component
- IComponent
要加入和轉譯的根元件實例。 這不得已經與任何轉譯器相關聯。
- initialParameters
- ParameterView
元件的參數。
傳回
HtmlRootComponent,可用來取得轉譯的 HTML。
適用於
BeginRenderingComponent(Type, ParameterView)
加入指定型別的根元件,並開始呈現它。
public Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent BeginRenderingComponent(Type componentType, Microsoft.AspNetCore.Components.ParameterView initialParameters);
member this.BeginRenderingComponent : Type * Microsoft.AspNetCore.Components.ParameterView -> Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent
Public Function BeginRenderingComponent (componentType As Type, initialParameters As ParameterView) As HtmlRootComponent
參數
- componentType
- Type
元件類型。 這必須實作 IComponent 。
- initialParameters
- ParameterView
元件的參數。
傳回
HtmlRootComponent,可用來取得轉譯的 HTML。