Sdílet prostřednictvím


IPageModelFactoryProvider.CreateModelDisposer Metoda

Definice

Uvolní model Razor Page.

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

Parametry

Návraty

Delegát použitý k uvolnění vytvořeného modelu stránky Razor Page.

Platí pro