Share via


RazorComponentResult 构造函数

定义

重载

RazorComponentResult(Type)

构造 的 RazorComponentResult实例。

RazorComponentResult(Type, IReadOnlyDictionary<String,Object>)

构造 的 RazorComponentResult实例。

RazorComponentResult(Type, Object)

构造 的 RazorComponentResult实例。

RazorComponentResult(Type)

构造 的 RazorComponentResult实例。

public RazorComponentResult (Type componentType);
new Microsoft.AspNetCore.Http.HttpResults.RazorComponentResult : Type -> Microsoft.AspNetCore.Http.HttpResults.RazorComponentResult
Public Sub New (componentType As Type)

参数

componentType
Type

要呈现的组件的类型。 这必须实现 IComponent

适用于

RazorComponentResult(Type, IReadOnlyDictionary<String,Object>)

构造 的 RazorComponentResult实例。

public RazorComponentResult (Type componentType, System.Collections.Generic.IReadOnlyDictionary<string,object?> parameters);
new Microsoft.AspNetCore.Http.HttpResults.RazorComponentResult : Type * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.AspNetCore.Http.HttpResults.RazorComponentResult
Public Sub New (componentType As Type, parameters As IReadOnlyDictionary(Of String, Object))

参数

componentType
Type

要呈现的组件的类型。 这必须实现 IComponent

parameters
IReadOnlyDictionary<String,Object>

组件的参数。

适用于

RazorComponentResult(Type, Object)

构造 的 RazorComponentResult实例。

public RazorComponentResult (Type componentType, object parameters);
new Microsoft.AspNetCore.Http.HttpResults.RazorComponentResult : Type * obj -> Microsoft.AspNetCore.Http.HttpResults.RazorComponentResult
Public Sub New (componentType As Type, parameters As Object)

参数

componentType
Type

要呈现的组件的类型。 这必须实现 IComponent

parameters
Object

组件的参数。

适用于