다음을 통해 공유


ModelValidationContext 생성자

정의

ModelValidationContext의 새 인스턴스를 만듭니다.

public:
 ModelValidationContext(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ modelMetadata, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, System::Object ^ container, System::Object ^ model);
public ModelValidationContext (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, object container, object model);
public ModelValidationContext (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata modelMetadata, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, object? container, object? model);
new Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContext : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * obj * obj -> Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContext
Public Sub New (actionContext As ActionContext, modelMetadata As ModelMetadata, metadataProvider As IModelMetadataProvider, container As Object, model As Object)

매개 변수

actionContext
ActionContext

ActionContext 유효성 검사를 위한 입니다.

modelMetadata
ModelMetadata

ModelMetadata 유효성 검사를 위한 입니다.

metadataProvider
IModelMetadataProvider

IModelMetadataProvider 유효성 검사에 사용할 입니다.

container
Object

모델 컨테이너입니다.

model
Object

유효성을 검사할 모델입니다.

적용 대상