RenderTreeBuilder.OpenComponent 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
OpenComponent(Int32, Type) |
附加代表子元件的框架。 |
OpenComponent<TComponent>(Int32) |
附加代表子元件的框架。 |
OpenComponent(Int32, Type)
附加代表子元件的框架。
public:
void OpenComponent(int sequence, Type ^ componentType);
public void OpenComponent(int sequence, Type componentType);
member this.OpenComponent : int * Type -> unit
Public Sub OpenComponent (sequence As Integer, componentType As Type)
參數
- sequence
- Int32
整數,表示指令在原始程式碼中的位置。
- componentType
- Type
子元件的型別。
適用於
OpenComponent<TComponent>(Int32)
附加代表子元件的框架。
public:
generic <typename TComponent>
where TComponent : Microsoft::AspNetCore::Components::IComponent void OpenComponent(int sequence);
public void OpenComponent<TComponent>(int sequence) where TComponent : Microsoft.AspNetCore.Components.IComponent;
member this.OpenComponent : int -> unit (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
Public Sub OpenComponent(Of TComponent As IComponent) (sequence As Integer)
類型參數
- TComponent
子元件的型別。
參數
- sequence
- Int32
整數,表示指令在原始程式碼中的位置。