Dela via


IPageModelFactoryProvider.CreateModelFactory Method

Definition

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

Returns

The Razor Page model factory.

Applies to