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)

参数

返回

用于激活页面模型的委托。

适用于