C# 클래스 System.ComponentModel.DataAnnotations.ValidationException

상속: Exception
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
ValidationException ( ) : System.Runtime.Serialization

Default constructor.

The long form of this constructor is preferred because it gives better error reporting.

ValidationException ( System.ComponentModel.DataAnnotations.ValidationResult validationResult, System.ComponentModel.DataAnnotations.ValidationAttribute validatingAttribute, object value ) : System.Runtime.Serialization

Constructor that accepts a structured ValidationResult describing the problem.

ValidationException ( string message ) : System.Runtime.Serialization

Constructor that accepts only a localized message

The long form of this constructor is preferred because it gives better error reporting.

ValidationException ( string message, Exception innerException ) : System.Runtime.Serialization

Constructor that accepts a localized message and an inner exception

The long form of this constructor is preferred because it gives better error reporting

ValidationException ( string errorMessage, System.ComponentModel.DataAnnotations.ValidationAttribute validatingAttribute, object value ) : System.Runtime.Serialization

Constructor that accepts an error message, the failing attribute, and the invalid value.

보호된 메소드들

메소드 설명
ValidationException ( SerializationInfo info, StreamingContext context ) : System.Runtime.Serialization

Constructor that takes a SerializationInfo.

메소드 상세

ValidationException() 공개 메소드

Default constructor.
The long form of this constructor is preferred because it gives better error reporting.
public ValidationException ( ) : System.Runtime.Serialization
리턴 System.Runtime.Serialization

ValidationException() 보호된 메소드

Constructor that takes a SerializationInfo.
protected ValidationException ( SerializationInfo info, StreamingContext context ) : System.Runtime.Serialization
info System.Runtime.Serialization.SerializationInfo The SerializationInfo.
context System.Runtime.Serialization.StreamingContext The StreamingContext.
리턴 System.Runtime.Serialization

ValidationException() 공개 메소드

Constructor that accepts a structured ValidationResult describing the problem.
public ValidationException ( System.ComponentModel.DataAnnotations.ValidationResult validationResult, System.ComponentModel.DataAnnotations.ValidationAttribute validatingAttribute, object value ) : System.Runtime.Serialization
validationResult System.ComponentModel.DataAnnotations.ValidationResult The value describing the validation error
validatingAttribute System.ComponentModel.DataAnnotations.ValidationAttribute The attribute that triggered this exception
value object The value that caused the validating attribute to trigger the exception
리턴 System.Runtime.Serialization

ValidationException() 공개 메소드

Constructor that accepts only a localized message
The long form of this constructor is preferred because it gives better error reporting.
public ValidationException ( string message ) : System.Runtime.Serialization
message string The localized message
리턴 System.Runtime.Serialization

ValidationException() 공개 메소드

Constructor that accepts a localized message and an inner exception
The long form of this constructor is preferred because it gives better error reporting
public ValidationException ( string message, Exception innerException ) : System.Runtime.Serialization
message string The localized error message
innerException Exception inner exception
리턴 System.Runtime.Serialization

ValidationException() 공개 메소드

Constructor that accepts an error message, the failing attribute, and the invalid value.
public ValidationException ( string errorMessage, System.ComponentModel.DataAnnotations.ValidationAttribute validatingAttribute, object value ) : System.Runtime.Serialization
errorMessage string The localized error message
validatingAttribute System.ComponentModel.DataAnnotations.ValidationAttribute The attribute that triggered this exception
value object The value that caused the validating attribute to trigger the exception
리턴 System.Runtime.Serialization