ObjectModelValidator.Validate 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
Validate(ActionContext, ValidationStateDictionary, String, Object) |
제공된 개체의 유효성을 검사합니다. |
Validate(ActionContext, ValidationStateDictionary, String, Object, ModelMetadata) |
제공된 개체 모델의 유효성을 검사합니다.
가 |
Validate(ActionContext, ValidationStateDictionary, String, Object, ModelMetadata, Object) |
제공된 개체 모델의 유효성을 검사합니다.
가 |
Validate(ActionContext, ValidationStateDictionary, String, Object)
- Source:
- ObjectModelValidator.cs
- Source:
- ObjectModelValidator.cs
- Source:
- ObjectModelValidator.cs
제공된 개체의 유효성을 검사합니다.
public:
virtual void Validate(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateDictionary ^ validationState, System::String ^ prefix, System::Object ^ model);
public virtual void Validate (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState, string prefix, object model);
public virtual void Validate (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary? validationState, string? prefix, object? model);
abstract member Validate : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary * string * obj -> unit
override this.Validate : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary * string * obj -> unit
Public Overridable Sub Validate (actionContext As ActionContext, validationState As ValidationStateDictionary, prefix As String, model As Object)
매개 변수
- actionContext
- ActionContext
ActionContext 현재 요청과 연결된 입니다.
- validationState
- ValidationStateDictionary
ValidationStateDictionary null일 수 있습니다.
- prefix
- String
모델 접두사입니다. 모델 개체를 의 항목 validationState
에 매핑하는 데 사용됩니다.
- model
- Object
모델 개체입니다.
구현
적용 대상
Validate(ActionContext, ValidationStateDictionary, String, Object, ModelMetadata)
- Source:
- ObjectModelValidator.cs
- Source:
- ObjectModelValidator.cs
- Source:
- ObjectModelValidator.cs
제공된 개체 모델의 유효성을 검사합니다.
가 null
이고 의 metadata
IsRequired 가 true
이면 model
그렇지 않은 모델 상태 오류가 Validate(ActionContext, ValidationStateDictionary, String, Object) 하나 이상 추가됩니다.
public:
virtual void Validate(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateDictionary ^ validationState, System::String ^ prefix, System::Object ^ model, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata);
public virtual void Validate (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState, string prefix, object model, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata);
public virtual void Validate (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary? validationState, string? prefix, object? model, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata);
abstract member Validate : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary * string * obj * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata -> unit
override this.Validate : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary * string * obj * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata -> unit
Public Overridable Sub Validate (actionContext As ActionContext, validationState As ValidationStateDictionary, prefix As String, model As Object, metadata As ModelMetadata)
매개 변수
- actionContext
- ActionContext
- validationState
- ValidationStateDictionary
- prefix
- String
모델 접두사 키입니다.
- model
- Object
모델 개체입니다.
- metadata
- ModelMetadata
적용 대상
Validate(ActionContext, ValidationStateDictionary, String, Object, ModelMetadata, Object)
- Source:
- ObjectModelValidator.cs
제공된 개체 모델의 유효성을 검사합니다.
가 null
이고 의 metadata
IsRequired 가 true
이면 model
그렇지 않은 모델 상태 오류가 Validate(ActionContext, ValidationStateDictionary, String, Object) 하나 이상 추가됩니다.
public:
virtual void Validate(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ValidationStateDictionary ^ validationState, System::String ^ prefix, System::Object ^ model, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, System::Object ^ container);
public virtual void Validate (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary validationState, string prefix, object model, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object container);
public virtual void Validate (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary? validationState, string? prefix, object? model, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object? container);
abstract member Validate : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary * string * obj * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * obj -> unit
override this.Validate : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ValidationStateDictionary * string * obj * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * obj -> unit
Public Overridable Sub Validate (actionContext As ActionContext, validationState As ValidationStateDictionary, prefix As String, model As Object, metadata As ModelMetadata, container As Object)
매개 변수
- actionContext
- ActionContext
- validationState
- ValidationStateDictionary
- prefix
- String
모델 접두사 키입니다.
- model
- Object
모델 개체입니다.
- metadata
- ModelMetadata
- container
- Object
모델 컨테이너