PageArgumentBinder.TryUpdateModelAsync 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.
Overloads
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)
Type Parameters
- TModel
Parameters
- context
- PageContext
- value
- TModel
Returns
Applies to
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)
Type Parameters
- TModel
Parameters
- context
- PageContext
- value
- TModel
- name
- String
Returns
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for