IPageFactoryProvider.CreatePageFactory(CompiledPageActionDescriptor) 方法

定义

创建一个工厂,用于为指定的 PageContext生成 Razor 页。

public:
 Func<Microsoft::AspNetCore::Mvc::RazorPages::PageContext ^, Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^, System::Object ^> ^ CreatePageFactory(Microsoft::AspNetCore::Mvc::RazorPages::CompiledPageActionDescriptor ^ descriptor);
public Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext,Microsoft.AspNetCore.Mvc.Rendering.ViewContext,object> CreatePageFactory (Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor);
abstract member CreatePageFactory : Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext, Microsoft.AspNetCore.Mvc.Rendering.ViewContext, obj>
Public Function CreatePageFactory (descriptor As CompiledPageActionDescriptor) As Func(Of PageContext, ViewContext, Object)

参数

返回

Razor 页面工厂。

适用于