共用方式為


IPageModelFactoryProvider.CreateModelDisposer 方法

定義

釋放 Razor 頁面模型。

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)

參數

傳回

用來釋放所建立 Razor 頁面模型的委派。

適用於