IPageModelFactoryProvider.CreateModelFactory 方法

定义

在给定指定的 PageContext的情况下,创建一个工厂,用于为 Razor Pages 生成模型。

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)

参数

返回

Razor 页面模型工厂。

适用于