PageModel.TryUpdateModelAsync 메서드

정의

오버로드

TryUpdateModelAsync(Object, Type, String)

의 현재 IValueProvidername의 값을 PageModel사용하여 지정된 model instance 업데이트.

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

name를 사용하여 valueProvider 지정된 model instance 업데이트.

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

name를 사용하여 valueProvider 지정된 model instance 업데이트.

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

name를 사용하여 valueProvider 지정된 model instance 업데이트.

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

의 현재 IValueProvidername의 값을 PageModel사용하여 지정된 model instance 업데이트.

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider)

name를 사용하여 valueProvider 지정된 model instance 업데이트.

TryUpdateModelAsync<TModel>(TModel, String)

의 현재 IValueProvider의 값을 PageModel사용하여 지정된 model instance 업데이트.

TryUpdateModelAsync<TModel>(TModel)

의 현재 IValueProvider의 값을 PageModel사용하여 지정된 model instance 업데이트.

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

의 현재 IValueProvidername의 값을 PageModel사용하여 지정된 model instance 업데이트.

TryUpdateModelAsync(Object, Type, String)

의 현재 IValueProvidername의 값을 PageModel사용하여 지정된 model instance 업데이트.

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

업데이트할 모델 instance 형식입니다.

name
String

현재 IValueProvider에서 값을 조회할 때 사용할 이름입니다.

반환

Task 업데이트에 성공하면 완료 시 반환 true 되는 입니다.

적용 대상

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

name를 사용하여 valueProvider 지정된 model instance 업데이트.

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

업데이트할 모델 instance 형식입니다.

name
String

에서 값을 조회할 때 사용할 이름입니다 valueProvider.

valueProvider
IValueProvider

IValueProvider 값을 조회하는 데 사용되는 입니다.

propertyFilter
Func<ModelMetadata,Boolean>

런타임에 속성을 필터링하는 데 사용할 수 있는 조건자입니다.

반환

Task 업데이트에 성공하면 완료 시 반환 true 되는 입니다.

적용 대상

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

name를 사용하여 valueProvider 지정된 model instance 업데이트.

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>)

name를 사용하여 valueProvider 지정된 model instance 업데이트.

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>>[])

의 현재 IValueProvidername의 값을 PageModel사용하여 지정된 model instance 업데이트.

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)

name를 사용하여 valueProvider 지정된 model instance 업데이트.

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의 값을 PageModel사용하여 지정된 model instance 업데이트.

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의 값을 PageModel사용하여 지정된 model instance 업데이트.

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>)

의 현재 IValueProvidername의 값을 PageModel사용하여 지정된 model instance 업데이트.

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 되는 입니다.

적용 대상