PageModel.TryUpdateModelAsync メソッド

定義

オーバーロード

TryUpdateModelAsync(Object, Type, String)

の現在IValueProviderの と の値PageModelを使用して、指定したmodelインスタンスをname更新します。

TryUpdateModelAsync(Object, Type, String, IValueProvider, Func<ModelMetadata,Boolean>)

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider, Expression<Func<TModel,Object>>[])

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider, Func<ModelMetadata,Boolean>)

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

TryUpdateModelAsync<TModel>(TModel, String, Expression<Func<TModel,Object>>[])

の現在IValueProviderの と の値PageModelを使用して、指定したmodelインスタンスをname更新します。

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider)

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

TryUpdateModelAsync<TModel>(TModel, String)

の現在IValueProviderの からの値を使用して、指定したmodelインスタンスをPageModel更新します。

TryUpdateModelAsync<TModel>(TModel)

の現在IValueProviderの からの値を使用して、指定したmodelインスタンスをPageModel更新します。

TryUpdateModelAsync<TModel>(TModel, String, Func<ModelMetadata,Boolean>)

の現在IValueProviderの と の値PageModelを使用して、指定したmodelインスタンスをname更新します。

TryUpdateModelAsync(Object, Type, String)

の現在IValueProviderの と の値PageModelを使用して、指定したmodelインスタンスをname更新します。

protected public:
 System::Threading::Tasks::Task<bool> ^ TryUpdateModelAsync(System::Object ^ model, Type ^ modelType, System::String ^ name);
protected internal System.Threading.Tasks.Task<bool> TryUpdateModelAsync (object model, Type modelType, string name);
member this.TryUpdateModelAsync : obj * Type * string -> System.Threading.Tasks.Task<bool>
Protected Friend Function TryUpdateModelAsync (model As Object, modelType As Type, name As String) As Task(Of Boolean)

パラメーター

model
Object

更新するモデル インスタンス。

modelType
Type

更新するモデル インスタンスの種類。

name
String

現在 IValueProviderの で値を検索するときに使用する名前。

戻り値

Task更新が成功した場合に、true完了時に が返される 。

適用対象

TryUpdateModelAsync(Object, Type, String, IValueProvider, Func<ModelMetadata,Boolean>)

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

protected public:
 System::Threading::Tasks::Task<bool> ^ TryUpdateModelAsync(System::Object ^ model, Type ^ modelType, System::String ^ name, Microsoft::AspNetCore::Mvc::ModelBinding::IValueProvider ^ valueProvider, Func<Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^, bool> ^ propertyFilter);
protected internal System.Threading.Tasks.Task<bool> TryUpdateModelAsync (object model, Type modelType, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata,bool> propertyFilter);
member this.TryUpdateModelAsync : obj * Type * string * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, bool> -> System.Threading.Tasks.Task<bool>
Protected Friend Function TryUpdateModelAsync (model As Object, modelType As Type, name As String, valueProvider As IValueProvider, propertyFilter As Func(Of ModelMetadata, Boolean)) As Task(Of Boolean)

パラメーター

model
Object

更新するモデル インスタンス。

modelType
Type

更新するモデル インスタンスの種類。

name
String

で値を探すときに使用する valueProvider名前。

valueProvider
IValueProvider

IValueProvider値の検索に使用される 。

propertyFilter
Func<ModelMetadata,Boolean>

実行時にプロパティをフィルター処理するために使用できる述語。

戻り値

Task更新が成功した場合に、true完了時に が返される 。

適用対象

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider, Expression<Func<TModel,Object>>[])

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

protected public:
generic <typename TModel>
 where TModel : class System::Threading::Tasks::Task<bool> ^ TryUpdateModelAsync(TModel model, System::String ^ name, Microsoft::AspNetCore::Mvc::ModelBinding::IValueProvider ^ valueProvider, ... cli::array <System::Linq::Expressions::Expression<Func<TModel, System::Object ^> ^> ^> ^ includeExpressions);
protected internal System.Threading.Tasks.Task<bool> TryUpdateModelAsync<TModel> (TModel model, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, params System.Linq.Expressions.Expression<Func<TModel,object>>[] includeExpressions) where TModel : class;
protected internal System.Threading.Tasks.Task<bool> TryUpdateModelAsync<TModel> (TModel model, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, params System.Linq.Expressions.Expression<Func<TModel,object?>>[] includeExpressions) where TModel : class;
member this.TryUpdateModelAsync : 'Model * string * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * System.Linq.Expressions.Expression<Func<'Model, obj>>[] -> System.Threading.Tasks.Task<bool> (requires 'Model : null)
Protected Friend Function TryUpdateModelAsync(Of TModel As Class) (model As TModel, name As String, valueProvider As IValueProvider, ParamArray includeExpressions As Expression(Of Func(Of TModel, Object))()) As Task(Of Boolean)

型パラメーター

TModel

モデル オブジェクトの型。

パラメーター

model
TModel

更新するモデル インスタンス。

name
String

で値を探すときに使用する valueProvider名前。

valueProvider
IValueProvider

IValueProvider値の検索に使用される 。

includeExpressions
Expression<Func<TModel,Object>>[]

Expression(s) 現在のモデルに含める必要がある最上位のプロパティを表します。

戻り値

Task更新が成功した場合に、true完了時に が返される 。

適用対象

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider, Func<ModelMetadata,Boolean>)

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

protected public:
generic <typename TModel>
 where TModel : class System::Threading::Tasks::Task<bool> ^ TryUpdateModelAsync(TModel model, System::String ^ name, Microsoft::AspNetCore::Mvc::ModelBinding::IValueProvider ^ valueProvider, Func<Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^, bool> ^ propertyFilter);
protected internal System.Threading.Tasks.Task<bool> TryUpdateModelAsync<TModel> (TModel model, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider, Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata,bool> propertyFilter) where TModel : class;
member this.TryUpdateModelAsync : 'Model * string * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider * Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, bool> -> System.Threading.Tasks.Task<bool> (requires 'Model : null)
Protected Friend Function TryUpdateModelAsync(Of TModel As Class) (model As TModel, name As String, valueProvider As IValueProvider, propertyFilter As Func(Of ModelMetadata, Boolean)) As Task(Of Boolean)

型パラメーター

TModel

モデル オブジェクトの型。

パラメーター

model
TModel

更新するモデル インスタンス。

name
String

で値を探すときに使用する valueProvider名前。

valueProvider
IValueProvider

IValueProvider値の検索に使用される 。

propertyFilter
Func<ModelMetadata,Boolean>

実行時にプロパティをフィルター処理するために使用できる述語。

戻り値

Task更新が成功した場合に、true完了時に が返される 。

適用対象

TryUpdateModelAsync<TModel>(TModel, String, Expression<Func<TModel,Object>>[])

の現在IValueProviderの と の値PageModelを使用して、指定したmodelインスタンスをname更新します。

protected public:
generic <typename TModel>
 where TModel : class System::Threading::Tasks::Task<bool> ^ TryUpdateModelAsync(TModel model, System::String ^ name, ... cli::array <System::Linq::Expressions::Expression<Func<TModel, System::Object ^> ^> ^> ^ includeExpressions);
protected internal System.Threading.Tasks.Task<bool> TryUpdateModelAsync<TModel> (TModel model, string name, params System.Linq.Expressions.Expression<Func<TModel,object>>[] includeExpressions) where TModel : class;
protected internal System.Threading.Tasks.Task<bool> TryUpdateModelAsync<TModel> (TModel model, string name, params System.Linq.Expressions.Expression<Func<TModel,object?>>[] includeExpressions) where TModel : class;
member this.TryUpdateModelAsync : 'Model * string * System.Linq.Expressions.Expression<Func<'Model, obj>>[] -> System.Threading.Tasks.Task<bool> (requires 'Model : null)
Protected Friend Function TryUpdateModelAsync(Of TModel As Class) (model As TModel, name As String, ParamArray includeExpressions As Expression(Of Func(Of TModel, Object))()) As Task(Of Boolean)

型パラメーター

TModel

モデル オブジェクトの型。

パラメーター

model
TModel

更新するモデル インスタンス。

name
String

現在 IValueProviderの で値を検索するときに使用する名前。

includeExpressions
Expression<Func<TModel,Object>>[]

Expression(s) 現在のモデルに含める必要がある最上位のプロパティを表します。

戻り値

Task更新が成功した場合に、true完了時に が返される 。

適用対象

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider)

と を使用して、指定したmodelインスタンスをvalueProvidername更新します。

protected public:
generic <typename TModel>
 where TModel : class System::Threading::Tasks::Task<bool> ^ TryUpdateModelAsync(TModel model, System::String ^ name, Microsoft::AspNetCore::Mvc::ModelBinding::IValueProvider ^ valueProvider);
protected internal System.Threading.Tasks.Task<bool> TryUpdateModelAsync<TModel> (TModel model, string name, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider valueProvider) where TModel : class;
member this.TryUpdateModelAsync : 'Model * string * Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider -> System.Threading.Tasks.Task<bool> (requires 'Model : null)
Protected Friend Function TryUpdateModelAsync(Of TModel As Class) (model As TModel, name As String, valueProvider As IValueProvider) As Task(Of Boolean)

型パラメーター

TModel

モデル オブジェクトの型。

パラメーター

model
TModel

更新するモデル インスタンス。

name
String

で値を探すときに使用する valueProvider名前。

valueProvider
IValueProvider

IValueProvider値の検索に使用される 。

戻り値

Task更新が成功した場合に、true完了時に が返される 。

適用対象

TryUpdateModelAsync<TModel>(TModel, String)

の現在IValueProviderの からの値を使用して、指定したmodelインスタンスをPageModel更新します。

protected public:
generic <typename TModel>
 where TModel : class System::Threading::Tasks::Task<bool> ^ TryUpdateModelAsync(TModel model, System::String ^ name);
protected internal System.Threading.Tasks.Task<bool> TryUpdateModelAsync<TModel> (TModel model, string name) where TModel : class;
member this.TryUpdateModelAsync : 'Model * string -> System.Threading.Tasks.Task<bool> (requires 'Model : null)
Protected Friend Function TryUpdateModelAsync(Of TModel As Class) (model As TModel, name As String) As Task(Of Boolean)

型パラメーター

TModel

モデル オブジェクトの型。

パラメーター

model
TModel

更新するモデル インスタンス。

name
String

モデル名。

戻り値

Task更新が成功した場合に、true完了時に が返される 。

適用対象

TryUpdateModelAsync<TModel>(TModel)

の現在IValueProviderの からの値を使用して、指定したmodelインスタンスをPageModel更新します。

protected public:
generic <typename TModel>
 where TModel : class System::Threading::Tasks::Task<bool> ^ TryUpdateModelAsync(TModel model);
protected internal System.Threading.Tasks.Task<bool> TryUpdateModelAsync<TModel> (TModel model) where TModel : class;
member this.TryUpdateModelAsync : 'Model -> System.Threading.Tasks.Task<bool> (requires 'Model : null)
Protected Friend Function TryUpdateModelAsync(Of TModel As Class) (model As TModel) As Task(Of Boolean)

型パラメーター

TModel

モデル オブジェクトの型。

パラメーター

model
TModel

更新するモデル インスタンス。

戻り値

Task更新が成功した場合に、true完了時に が返される 。

適用対象

TryUpdateModelAsync<TModel>(TModel, String, Func<ModelMetadata,Boolean>)

の現在IValueProviderの と の値PageModelを使用して、指定したmodelインスタンスをname更新します。

protected public:
generic <typename TModel>
 where TModel : class System::Threading::Tasks::Task<bool> ^ TryUpdateModelAsync(TModel model, System::String ^ name, Func<Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^, bool> ^ propertyFilter);
protected internal System.Threading.Tasks.Task<bool> TryUpdateModelAsync<TModel> (TModel model, string name, Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata,bool> propertyFilter) where TModel : class;
member this.TryUpdateModelAsync : 'Model * string * Func<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata, bool> -> System.Threading.Tasks.Task<bool> (requires 'Model : null)
Protected Friend Function TryUpdateModelAsync(Of TModel As Class) (model As TModel, name As String, propertyFilter As Func(Of ModelMetadata, Boolean)) As Task(Of Boolean)

型パラメーター

TModel

モデル オブジェクトの型。

パラメーター

model
TModel

更新するモデル インスタンス。

name
String

現在 IValueProviderの で値を検索するときに使用する名前。

propertyFilter
Func<ModelMetadata,Boolean>

実行時にプロパティをフィルター処理するために使用できる述語。

戻り値

Task更新が成功した場合に、true完了時に が返される 。

適用対象