PageArgumentBinder.TryUpdateModelAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TryUpdateModelAsync<TModel>(PageContext, TModel) | |
TryUpdateModelAsync<TModel>(PageContext, TModel, String) |
TryUpdateModelAsync<TModel>(PageContext, TModel)
- Source:
- PageArgumentBinder.cs
- Source:
- PageArgumentBinder.cs
public:
generic <typename TModel>
System::Threading::Tasks::Task<bool> ^ TryUpdateModelAsync(Microsoft::AspNetCore::Mvc::RazorPages::PageContext ^ context, TModel value);
public System.Threading.Tasks.Task<bool> TryUpdateModelAsync<TModel> (Microsoft.AspNetCore.Mvc.RazorPages.PageContext context, TModel value);
member this.TryUpdateModelAsync : Microsoft.AspNetCore.Mvc.RazorPages.PageContext * 'Model -> System.Threading.Tasks.Task<bool>
Public Function TryUpdateModelAsync(Of TModel) (context As PageContext, value As TModel) As Task(Of Boolean)
类型参数
- TModel
参数
- context
- PageContext
- value
- TModel
返回
适用于
TryUpdateModelAsync<TModel>(PageContext, TModel, String)
- Source:
- PageArgumentBinder.cs
- Source:
- PageArgumentBinder.cs
public:
generic <typename TModel>
System::Threading::Tasks::Task<bool> ^ TryUpdateModelAsync(Microsoft::AspNetCore::Mvc::RazorPages::PageContext ^ context, TModel value, System::String ^ name);
public System.Threading.Tasks.Task<bool> TryUpdateModelAsync<TModel> (Microsoft.AspNetCore.Mvc.RazorPages.PageContext context, TModel value, string name);
member this.TryUpdateModelAsync : Microsoft.AspNetCore.Mvc.RazorPages.PageContext * 'Model * string -> System.Threading.Tasks.Task<bool>
Public Function TryUpdateModelAsync(Of TModel) (context As PageContext, value As TModel, name As String) As Task(Of Boolean)
类型参数
- TModel
参数
- context
- PageContext
- value
- TModel
- name
- String