HtmlRenderer.RenderComponentAsync 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| RenderComponentAsync(Type) | 
						 添加指定组件的实例并指示它呈现,等待组件层次结构完成异步任务,例如加载。  | 
        	
| RenderComponentAsync(Type, ParameterView) | 
						 添加指定组件的实例并指示它呈现,等待组件层次结构完成异步任务,例如加载。  | 
        	
| RenderComponentAsync<TComponent>() | 
						 添加指定组件的实例并指示它呈现,等待组件层次结构完成异步任务,例如加载。  | 
        	
| RenderComponentAsync<TComponent>(ParameterView) | 
						 添加指定组件的实例并指示它呈现,等待组件层次结构完成异步任务,例如加载。  | 
        	
RenderComponentAsync(Type)
- Source:
 - HtmlRenderer.cs
 
- Source:
 - HtmlRenderer.cs
 
- Source:
 - HtmlRenderer.cs
 
添加指定组件的实例并指示它呈现,等待组件层次结构完成异步任务,例如加载。
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> RenderComponentAsync(Type componentType);
	member this.RenderComponentAsync : Type -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent>
	Public Function RenderComponentAsync (componentType As Type) As Task(Of HtmlRootComponent)
	参数
- componentType
 - Type
 
组件类型。 这必须实现 IComponent。
返回
一个在 HtmlRootComponent 组件层次结构完成任何异步任务(例如加载)后完成的任务。
适用于
RenderComponentAsync(Type, ParameterView)
- Source:
 - HtmlRenderer.cs
 
- Source:
 - HtmlRenderer.cs
 
- Source:
 - HtmlRenderer.cs
 
添加指定组件的实例并指示它呈现,等待组件层次结构完成异步任务,例如加载。
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> RenderComponentAsync(Type componentType, Microsoft.AspNetCore.Components.ParameterView parameters);
	member this.RenderComponentAsync : Type * Microsoft.AspNetCore.Components.ParameterView -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent>
	Public Function RenderComponentAsync (componentType As Type, parameters As ParameterView) As Task(Of HtmlRootComponent)
	参数
- componentType
 - Type
 
组件类型。 这必须实现 IComponent。
- parameters
 - ParameterView
 
组件的参数。
返回
一个在 HtmlRootComponent 组件层次结构完成任何异步任务(例如加载)后完成的任务。
适用于
RenderComponentAsync<TComponent>()
- Source:
 - HtmlRenderer.cs
 
- Source:
 - HtmlRenderer.cs
 
- Source:
 - HtmlRenderer.cs
 
添加指定组件的实例并指示它呈现,等待组件层次结构完成异步任务,例如加载。
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> RenderComponentAsync<TComponent>() where TComponent : Microsoft.AspNetCore.Components.IComponent;
	member this.RenderComponentAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
	Public Function RenderComponentAsync(Of TComponent As IComponent) () As Task(Of HtmlRootComponent)
    类型参数
- TComponent
 
组件类型。
返回
一个在 HtmlRootComponent 组件层次结构完成任何异步任务(例如加载)后完成的任务。
适用于
RenderComponentAsync<TComponent>(ParameterView)
- Source:
 - HtmlRenderer.cs
 
- Source:
 - HtmlRenderer.cs
 
- Source:
 - HtmlRenderer.cs
 
添加指定组件的实例并指示它呈现,等待组件层次结构完成异步任务,例如加载。
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> RenderComponentAsync<TComponent>(Microsoft.AspNetCore.Components.ParameterView parameters) where TComponent : Microsoft.AspNetCore.Components.IComponent;
	member this.RenderComponentAsync : Microsoft.AspNetCore.Components.ParameterView -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.Web.HtmlRendering.HtmlRootComponent> (requires 'Component :> Microsoft.AspNetCore.Components.IComponent)
	Public Function RenderComponentAsync(Of TComponent As IComponent) (parameters As ParameterView) As Task(Of HtmlRootComponent)
    类型参数
- TComponent
 
组件类型。
参数
- parameters
 - ParameterView
 
组件的参数。
返回
一个在 HtmlRootComponent 组件层次结构完成任何异步任务(例如加载)后完成的任务。