메소드 | 설명 | |
---|---|---|
TryValidate ( object input, string &errorMessage, bool outputJsonPayload = false ) : bool |
Validates the attribute tag validations declared on the class. Returns false if validation rules are not met and returns the error message in the errorMessage (out) parameter
|
|
Validate ( object input, bool outputJsonPayload = false ) : bool |
Validates the attribute tag validations declared on the class. Throws an ValidationException if any validation rules are not met
|
메소드 | 설명 | |
---|---|---|
CheckDefinedExAttribute ( |
Checks the Defined attribute.
|
|
CheckList ( object input, bool outputJsonPayload = false ) : bool | ||
CheckListProperty ( object input, |
||
CheckMaxLengthAttribute ( |
||
CheckMinLengthAttribute ( |
||
CheckRangeAttribute ( |
||
CheckRegularExpressionAttribute ( |
Checks the Defined attribute.
|
|
CheckRequiredAttribute ( |
||
CheckStringLengthAttribute ( |
||
IsPrimitiveType ( object myObject ) : bool | ||
ObjReqChecker ( object input, |
public static TryValidate ( object input, string &errorMessage, bool outputJsonPayload = false ) : bool | ||
input | object | The object you wish to validate |
errorMessage | string | The error message |
outputJsonPayload | bool | If you want the error message to contain the values in the object we are validating |
리턴 | bool |
public static Validate ( object input, bool outputJsonPayload = false ) : bool | ||
input | object | The object you wish to validate |
outputJsonPayload | bool | If true will output the contents of input payload in the exception |
리턴 | bool |