RazorPageFactoryResult Constructors   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| RazorPageFactoryResult(IList<IChangeToken>) | Initializes a new instance of RazorPageFactoryResult with the
specified  | 
| 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.
public:
 RazorPageFactoryResult(System::Collections::Generic::IList<Microsoft::Extensions::Primitives::IChangeToken ^> ^ expirationTokens);public RazorPageFactoryResult(System.Collections.Generic.IList<Microsoft.Extensions.Primitives.IChangeToken> expirationTokens);new Microsoft.AspNetCore.Mvc.Razor.RazorPageFactoryResult : System.Collections.Generic.IList<Microsoft.Extensions.Primitives.IChangeToken> -> Microsoft.AspNetCore.Mvc.Razor.RazorPageFactoryResultPublic Sub New (expirationTokens As IList(Of IChangeToken))Parameters
- expirationTokens
- IList<IChangeToken>
One or more IChangeToken instances.
Applies to
RazorPageFactoryResult(CompiledViewDescriptor, Func<IRazorPage>)
- Source:
- RazorPageFactoryResult.cs
- Source:
- RazorPageFactoryResult.cs
- Source:
- RazorPageFactoryResult.cs
Initializes a new instance of RazorPageFactoryResult with the specified IRazorPage factory.
public:
 RazorPageFactoryResult(Microsoft::AspNetCore::Mvc::Razor::Compilation::CompiledViewDescriptor ^ viewDescriptor, Func<Microsoft::AspNetCore::Mvc::Razor::IRazorPage ^> ^ razorPageFactory);public RazorPageFactoryResult(Microsoft.AspNetCore.Mvc.Razor.Compilation.CompiledViewDescriptor viewDescriptor, Func<Microsoft.AspNetCore.Mvc.Razor.IRazorPage>? razorPageFactory);public RazorPageFactoryResult(Microsoft.AspNetCore.Mvc.Razor.Compilation.CompiledViewDescriptor viewDescriptor, Func<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> razorPageFactory);new Microsoft.AspNetCore.Mvc.Razor.RazorPageFactoryResult : Microsoft.AspNetCore.Mvc.Razor.Compilation.CompiledViewDescriptor * Func<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> -> Microsoft.AspNetCore.Mvc.Razor.RazorPageFactoryResultPublic Sub New (viewDescriptor As CompiledViewDescriptor, razorPageFactory As Func(Of IRazorPage))Parameters
- viewDescriptor
- CompiledViewDescriptor
- razorPageFactory
- Func<IRazorPage>
The IRazorPage factory.
Applies to
RazorPageFactoryResult(Func<IRazorPage>, IList<IChangeToken>)
Initializes a new instance of RazorPageFactoryResult with the specified IRazorPage factory.
public:
 RazorPageFactoryResult(Func<Microsoft::AspNetCore::Mvc::Razor::IRazorPage ^> ^ razorPageFactory, System::Collections::Generic::IList<Microsoft::Extensions::Primitives::IChangeToken ^> ^ expirationTokens);public RazorPageFactoryResult(Func<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> razorPageFactory, System.Collections.Generic.IList<Microsoft.Extensions.Primitives.IChangeToken> expirationTokens);new Microsoft.AspNetCore.Mvc.Razor.RazorPageFactoryResult : Func<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> * System.Collections.Generic.IList<Microsoft.Extensions.Primitives.IChangeToken> -> Microsoft.AspNetCore.Mvc.Razor.RazorPageFactoryResultPublic Sub New (razorPageFactory As Func(Of IRazorPage), expirationTokens As IList(Of IChangeToken))Parameters
- razorPageFactory
- Func<IRazorPage>
The IRazorPage factory.
- expirationTokens
- IList<IChangeToken>
One or more IChangeToken instances.
Applies to
RazorPageFactoryResult(Func<IRazorPage>, IList<IChangeToken>, Boolean)
Initializes a new instance of RazorPageFactoryResult with the specified IRazorPage factory.
public:
 RazorPageFactoryResult(Func<Microsoft::AspNetCore::Mvc::Razor::IRazorPage ^> ^ razorPageFactory, System::Collections::Generic::IList<Microsoft::Extensions::Primitives::IChangeToken ^> ^ expirationTokens, bool isPrecompiled);public RazorPageFactoryResult(Func<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> razorPageFactory, System.Collections.Generic.IList<Microsoft.Extensions.Primitives.IChangeToken> expirationTokens, bool isPrecompiled);new Microsoft.AspNetCore.Mvc.Razor.RazorPageFactoryResult : Func<Microsoft.AspNetCore.Mvc.Razor.IRazorPage> * System.Collections.Generic.IList<Microsoft.Extensions.Primitives.IChangeToken> * bool -> Microsoft.AspNetCore.Mvc.Razor.RazorPageFactoryResultPublic Sub New (razorPageFactory As Func(Of IRazorPage), expirationTokens As IList(Of IChangeToken), isPrecompiled As Boolean)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.