共用方式為


IPageModelActivatorProvider.CreateActivator 方法

定義

建立 Razor 頁面模型啟動器。

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

參數

傳回

用來啟動頁面模型的委派。

適用於