DefaultPageModelActivatorProvider.CreateActivator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a Razor Page model activator.
public:
virtual Func<Microsoft::AspNetCore::Mvc::RazorPages::PageContext ^, System::Object ^> ^ CreateActivator(Microsoft::AspNetCore::Mvc::RazorPages::CompiledPageActionDescriptor ^ actionDescriptor);
public virtual Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext,object> CreateActivator (Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor actionDescriptor);
abstract member CreateActivator : Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext, obj>
override this.CreateActivator : Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext, obj>
Public Overridable Function CreateActivator (actionDescriptor As CompiledPageActionDescriptor) As Func(Of PageContext, Object)
Parameters
- actionDescriptor
- CompiledPageActionDescriptor
Returns
The delegate used to activate the page model.