IPageModelFactoryProvider.CreateAsyncModelDisposer 方法

定义

异步发布 Razor 页面模型。

public virtual Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext,object,System.Threading.Tasks.ValueTask>? CreateAsyncModelDisposer (Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor);
abstract member CreateAsyncModelDisposer : Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext, obj, System.Threading.Tasks.ValueTask>
override this.CreateAsyncModelDisposer : Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext, obj, System.Threading.Tasks.ValueTask>
Public Overridable Function CreateAsyncModelDisposer (descriptor As CompiledPageActionDescriptor) As Func(Of PageContext, Object, ValueTask)

参数

返回

用于异步释放创建的 Razor 页面模型的委托。

适用于