Dela via


RazorComponentResult Constructors

Definition

Overloads

RazorComponentResult(Type)

Constructs an instance of RazorComponentResult.

RazorComponentResult(Type, IReadOnlyDictionary<String,Object>)

Constructs an instance of RazorComponentResult.

RazorComponentResult(Type, Object)

Constructs an instance of RazorComponentResult.

RazorComponentResult(Type)

Source:
RazorComponentResult.cs

Constructs an instance of RazorComponentResult.

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

Parameters

componentType
Type

The type of the component to render. This must implement IComponent.

Applies to

RazorComponentResult(Type, IReadOnlyDictionary<String,Object>)

Source:
RazorComponentResult.cs

Constructs an instance of 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))

Parameters

componentType
Type

The type of the component to render. This must implement IComponent.

parameters
IReadOnlyDictionary<String,Object>

Parameters for the component.

Applies to

RazorComponentResult(Type, Object)

Source:
RazorComponentResult.cs

Constructs an instance of 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)

Parameters

componentType
Type

The type of the component to render. This must implement IComponent.

parameters
Object

Parameters for the component.

Applies to