IPageModelFactoryProvider.CreateModelFactory Method
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.
Creates a factory for producing models for Razor Pages given the specified PageContext.
public:
Func<Microsoft::AspNetCore::Mvc::RazorPages::PageContext ^, System::Object ^> ^ CreateModelFactory(Microsoft::AspNetCore::Mvc::RazorPages::CompiledPageActionDescriptor ^ descriptor);
public Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext,object> CreateModelFactory (Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor);
public Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext,object>? CreateModelFactory (Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor);
abstract member CreateModelFactory : Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext, obj>
Public Function CreateModelFactory (descriptor As CompiledPageActionDescriptor) As Func(Of PageContext, Object)
Parameters
- descriptor
- CompiledPageActionDescriptor
Returns
The Razor Page model factory.