共用方式為


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 頁面模型處理站。

適用於