메소드 | 설명 | |
---|---|---|
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 ( |
Constructor that takes a SerializationInfo.
|
public ValidationException ( ) : System.Runtime.Serialization | ||
리턴 | System.Runtime.Serialization |
protected ValidationException ( |
||
info | The SerializationInfo. | |
context | The StreamingContext. | |
리턴 | System.Runtime.Serialization |
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 |
public ValidationException ( string message ) : System.Runtime.Serialization | ||
message | string | The localized message |
리턴 | System.Runtime.Serialization |
public ValidationException ( string message, Exception innerException ) : System.Runtime.Serialization | ||
message | string | The localized error message |
innerException | Exception | inner exception |
리턴 | System.Runtime.Serialization |
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 |