RazorPageFactoryResult Constructors

Definition

Overloads

RazorPageFactoryResult(IList<IChangeToken>)

Initializes a new instance of RazorPageFactoryResult with the specified expirationTokens.

RazorPageFactoryResult(CompiledViewDescriptor, Func<IRazorPage>)

Initializes a new instance of RazorPageFactoryResult with the specified IRazorPage factory.

RazorPageFactoryResult(Func<IRazorPage>, IList<IChangeToken>)

Initializes a new instance of RazorPageFactoryResult with the specified IRazorPage factory.

RazorPageFactoryResult(Func<IRazorPage>, IList<IChangeToken>, Boolean)

Initializes a new instance of RazorPageFactoryResult with the specified IRazorPage factory.

RazorPageFactoryResult(IList<IChangeToken>)

Initializes a new instance of RazorPageFactoryResult with the specified expirationTokens.

C#
public RazorPageFactoryResult (System.Collections.Generic.IList<Microsoft.Extensions.Primitives.IChangeToken> expirationTokens);

Parameters

expirationTokens
IList<IChangeToken>

One or more IChangeToken instances.

Applies to

ASP.NET Core 1.1 and ASP.NET Core 1.0
Product Versions
ASP.NET Core 1.0, 1.1

RazorPageFactoryResult(CompiledViewDescriptor, Func<IRazorPage>)

Source:
RazorPageFactoryResult.cs
Source:
RazorPageFactoryResult.cs
Source:
RazorPageFactoryResult.cs

Initializes a new instance of RazorPageFactoryResult with the specified IRazorPage factory.

C#
public RazorPageFactoryResult (Microsoft.AspNetCore.Mvc.Razor.Compilation.CompiledViewDescriptor viewDescriptor, Func<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> razorPageFactory);
C#
public RazorPageFactoryResult (Microsoft.AspNetCore.Mvc.Razor.Compilation.CompiledViewDescriptor viewDescriptor, Func<Microsoft.AspNetCore.Mvc.Razor.IRazorPage>? razorPageFactory);

Parameters

razorPageFactory
Func<IRazorPage>

The IRazorPage factory.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

RazorPageFactoryResult(Func<IRazorPage>, IList<IChangeToken>)

Initializes a new instance of RazorPageFactoryResult with the specified IRazorPage factory.

C#
public RazorPageFactoryResult (Func<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> razorPageFactory, System.Collections.Generic.IList<Microsoft.Extensions.Primitives.IChangeToken> expirationTokens);

Parameters

razorPageFactory
Func<IRazorPage>

The IRazorPage factory.

expirationTokens
IList<IChangeToken>

One or more IChangeToken instances.

Applies to

ASP.NET Core 1.1 and ASP.NET Core 1.0
Product Versions
ASP.NET Core 1.0, 1.1

RazorPageFactoryResult(Func<IRazorPage>, IList<IChangeToken>, Boolean)

Initializes a new instance of RazorPageFactoryResult with the specified IRazorPage factory.

C#
public RazorPageFactoryResult (Func<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> razorPageFactory, System.Collections.Generic.IList<Microsoft.Extensions.Primitives.IChangeToken> expirationTokens, bool isPrecompiled);

Parameters

razorPageFactory
Func<IRazorPage>

The IRazorPage factory.

expirationTokens
IList<IChangeToken>

One or more IChangeToken instances.

isPrecompiled
Boolean

true if the view is precompiled, false otherwise.

Applies to

ASP.NET Core 1.1
Product Versions
ASP.NET Core 1.1