C# 클래스 Catel.Data.ValidationContext

Context containing all validation and provides several methods to gather this information.
상속: IValidationContext
파일 보기 프로젝트 열기: Catel/Catel 1 사용 예제들

공개 메소드들

메소드 설명
AddBusinessRuleValidationResult ( IBusinessRuleValidationResult businessRuleValidationResult ) : void

Adds the business rule validation result.

AddFieldValidationResult ( IFieldValidationResult fieldValidationResult ) : void

Adds the field validation result.

GetBusinessRuleErrorCount ( ) : int

Gets the business rule error count.

GetBusinessRuleErrorCount ( object tag ) : int

Gets the business rule error count with the specified tag.

GetBusinessRuleErrors ( ) : List

Gets all the business rule errors.

GetBusinessRuleErrors ( object tag ) : List

Gets all the business rule errors with the specified tag.

GetBusinessRuleValidationCount ( ) : int

Gets the business rule validation count.

GetBusinessRuleValidationCount ( object tag ) : int

Gets the business rule validation count with the specified tag.

GetBusinessRuleValidations ( ) : List

Gets all the business rule validations.

GetBusinessRuleValidations ( object tag ) : List

Gets all the business rule validations with the specified tag.

GetBusinessRuleWarningCount ( ) : int

Gets the business rule warning count.

GetBusinessRuleWarningCount ( object tag ) : int

Gets the business rule warning count with the specified tag.

GetBusinessRuleWarnings ( ) : List

Gets all the business rule warnings.

GetBusinessRuleWarnings ( object tag ) : List

Gets all the business rule warnings with the specified tag.

GetErrorCount ( ) : int

Gets the number of field and business rule errors inside this context.

GetErrorCount ( object tag ) : int

Gets the number of field and business rule errors with the specified tag inside this context.

GetErrors ( ) : List

Gets all field and business rule errors.

GetErrors ( object tag ) : List

Gets all field and business rule errors with the specified tag.

GetFieldErrorCount ( ) : int

Gets the field error count of all fields.

GetFieldErrorCount ( object tag ) : int

Gets the field error count of all fields with the specified tag.

GetFieldErrors ( ) : List

Gets all the field errors.

GetFieldErrors ( object tag ) : List

Gets all the field errors with the specified tag.

GetFieldErrors ( string propertyName ) : List

Gets all the field errors for the specified property name.

GetFieldErrors ( string propertyName, object tag ) : List

Gets all the field errors for the specified property name with the specified tag.

GetFieldValidationCount ( ) : int

Gets the field validation count of all fields.

GetFieldValidationCount ( object tag ) : int

Gets the field validation count of all fields with the specified tag.

GetFieldValidations ( ) : List

Gets all the field validations.

GetFieldValidations ( object tag ) : List

Gets all the field validations with the specified tag.

GetFieldValidations ( string propertyName ) : List

Gets all the field validations for the specified property name.

GetFieldValidations ( string propertyName, object tag ) : List

Gets all the field validations for the specified property name with the specified tag.

GetFieldWarningCount ( ) : int

Gets the field warning count of all fields.

GetFieldWarningCount ( object tag ) : int

Gets the field warning count of all fields with the specified tag.

GetFieldWarnings ( ) : List

Gets all the field warnings.

GetFieldWarnings ( object tag ) : List

Gets all the field warnings with the specified tag.

GetFieldWarnings ( string propertyName ) : List

Gets all the field warnings for the specified property name.

GetFieldWarnings ( string propertyName, object tag ) : List

Gets all the field warnings for the specified property name with the specified tag.

GetValidationCount ( ) : int

Gets the total validation count of all fields and business rules.

GetValidationCount ( object tag ) : int

Gets the total validation count of all fields and business rules with the specified tag.

GetValidations ( ) : List

Gets all the field and business rule validations.

GetValidations ( object tag ) : List

Gets all the field and business rule validations with the specified tag.

GetWarningCount ( ) : int

Gets the number of field and business rule warnings inside this context.

GetWarningCount ( object tag ) : int

Gets the number of field and business rule warnings with the specified tag inside this context.

GetWarnings ( ) : List

Gets all field and business rule warnings.

GetWarnings ( object tag ) : List

Gets all field and business rule warnings with the specified tag.

RemoveBusinessRuleValidationResult ( IBusinessRuleValidationResult businessRuleValidationResult ) : void

Removes the business rule validation result.

RemoveFieldValidationResult ( IFieldValidationResult fieldValidationResult ) : void

Removes the field validation result.

ToString ( ) : string

Returns a System.String that represents this instance.

ValidationContext ( IEnumerable fieldValidationResults, IEnumerable businessRuleValidationResults ) : System

Initializes a new instance of the ValidationContext class.

ValidationContext ( IEnumerable fieldValidationResults, IEnumerable businessRuleValidationResults, System.DateTime lastModified ) : System

Initializes a new instance of the ValidationContext class.

비공개 메소드들

메소드 설명
UpdateLastModificationStamp ( System.DateTime dateTime, bool resetLastModifiedTicksToZero = false ) : void
ValidationContext ( ) : System

Initializes static members of the ValidationContext class.

메소드 상세

AddBusinessRuleValidationResult() 공개 메소드

Adds the business rule validation result.
The is null.
public AddBusinessRuleValidationResult ( IBusinessRuleValidationResult businessRuleValidationResult ) : void
businessRuleValidationResult IBusinessRuleValidationResult The business rule validation result.
리턴 void

AddFieldValidationResult() 공개 메소드

Adds the field validation result.
The is null.
public AddFieldValidationResult ( IFieldValidationResult fieldValidationResult ) : void
fieldValidationResult IFieldValidationResult The field validation result.
리턴 void

GetBusinessRuleErrorCount() 공개 메소드

Gets the business rule error count.
public GetBusinessRuleErrorCount ( ) : int
리턴 int

GetBusinessRuleErrorCount() 공개 메소드

Gets the business rule error count with the specified tag.
public GetBusinessRuleErrorCount ( object tag ) : int
tag object The tag.
리턴 int

GetBusinessRuleErrors() 공개 메소드

Gets all the business rule errors.
public GetBusinessRuleErrors ( ) : List
리턴 List

GetBusinessRuleErrors() 공개 메소드

Gets all the business rule errors with the specified tag.
public GetBusinessRuleErrors ( object tag ) : List
tag object The tag.
리턴 List

GetBusinessRuleValidationCount() 공개 메소드

Gets the business rule validation count.
public GetBusinessRuleValidationCount ( ) : int
리턴 int

GetBusinessRuleValidationCount() 공개 메소드

Gets the business rule validation count with the specified tag.
public GetBusinessRuleValidationCount ( object tag ) : int
tag object The tag.
리턴 int

GetBusinessRuleValidations() 공개 메소드

Gets all the business rule validations.
public GetBusinessRuleValidations ( ) : List
리턴 List

GetBusinessRuleValidations() 공개 메소드

Gets all the business rule validations with the specified tag.
public GetBusinessRuleValidations ( object tag ) : List
tag object The tag.
리턴 List

GetBusinessRuleWarningCount() 공개 메소드

Gets the business rule warning count.
public GetBusinessRuleWarningCount ( ) : int
리턴 int

GetBusinessRuleWarningCount() 공개 메소드

Gets the business rule warning count with the specified tag.
public GetBusinessRuleWarningCount ( object tag ) : int
tag object The tag.
리턴 int

GetBusinessRuleWarnings() 공개 메소드

Gets all the business rule warnings.
public GetBusinessRuleWarnings ( ) : List
리턴 List

GetBusinessRuleWarnings() 공개 메소드

Gets all the business rule warnings with the specified tag.
public GetBusinessRuleWarnings ( object tag ) : List
tag object The tag.
리턴 List

GetErrorCount() 공개 메소드

Gets the number of field and business rule errors inside this context.
public GetErrorCount ( ) : int
리턴 int

GetErrorCount() 공개 메소드

Gets the number of field and business rule errors with the specified tag inside this context.
public GetErrorCount ( object tag ) : int
tag object The tag.
리턴 int

GetErrors() 공개 메소드

Gets all field and business rule errors.
public GetErrors ( ) : List
리턴 List

GetErrors() 공개 메소드

Gets all field and business rule errors with the specified tag.
public GetErrors ( object tag ) : List
tag object The tag.
리턴 List

GetFieldErrorCount() 공개 메소드

Gets the field error count of all fields.
public GetFieldErrorCount ( ) : int
리턴 int

GetFieldErrorCount() 공개 메소드

Gets the field error count of all fields with the specified tag.
public GetFieldErrorCount ( object tag ) : int
tag object The tag.
리턴 int

GetFieldErrors() 공개 메소드

Gets all the field errors.
public GetFieldErrors ( ) : List
리턴 List

GetFieldErrors() 공개 메소드

Gets all the field errors with the specified tag.
public GetFieldErrors ( object tag ) : List
tag object The tag.
리턴 List

GetFieldErrors() 공개 메소드

Gets all the field errors for the specified property name.
The is null or whitespace.
public GetFieldErrors ( string propertyName ) : List
propertyName string Name of the property.
리턴 List

GetFieldErrors() 공개 메소드

Gets all the field errors for the specified property name with the specified tag.
The is null or whitespace.
public GetFieldErrors ( string propertyName, object tag ) : List
propertyName string Name of the property.
tag object The tag.
리턴 List

GetFieldValidationCount() 공개 메소드

Gets the field validation count of all fields.
public GetFieldValidationCount ( ) : int
리턴 int

GetFieldValidationCount() 공개 메소드

Gets the field validation count of all fields with the specified tag.
public GetFieldValidationCount ( object tag ) : int
tag object The tag.
리턴 int

GetFieldValidations() 공개 메소드

Gets all the field validations.
public GetFieldValidations ( ) : List
리턴 List

GetFieldValidations() 공개 메소드

Gets all the field validations with the specified tag.
public GetFieldValidations ( object tag ) : List
tag object The tag.
리턴 List

GetFieldValidations() 공개 메소드

Gets all the field validations for the specified property name.
The is null or whitespace.
public GetFieldValidations ( string propertyName ) : List
propertyName string Name of the property.
리턴 List

GetFieldValidations() 공개 메소드

Gets all the field validations for the specified property name with the specified tag.
The is null or whitespace.
public GetFieldValidations ( string propertyName, object tag ) : List
propertyName string Name of the property.
tag object The tag.
리턴 List

GetFieldWarningCount() 공개 메소드

Gets the field warning count of all fields.
public GetFieldWarningCount ( ) : int
리턴 int

GetFieldWarningCount() 공개 메소드

Gets the field warning count of all fields with the specified tag.
public GetFieldWarningCount ( object tag ) : int
tag object The tag.
리턴 int

GetFieldWarnings() 공개 메소드

Gets all the field warnings.
public GetFieldWarnings ( ) : List
리턴 List

GetFieldWarnings() 공개 메소드

Gets all the field warnings with the specified tag.
public GetFieldWarnings ( object tag ) : List
tag object The tag.
리턴 List

GetFieldWarnings() 공개 메소드

Gets all the field warnings for the specified property name.
The is null or whitespace.
public GetFieldWarnings ( string propertyName ) : List
propertyName string Name of the property.
리턴 List

GetFieldWarnings() 공개 메소드

Gets all the field warnings for the specified property name with the specified tag.
The is null or whitespace.
public GetFieldWarnings ( string propertyName, object tag ) : List
propertyName string Name of the property.
tag object The tag.
리턴 List

GetValidationCount() 공개 메소드

Gets the total validation count of all fields and business rules.
public GetValidationCount ( ) : int
리턴 int

GetValidationCount() 공개 메소드

Gets the total validation count of all fields and business rules with the specified tag.
public GetValidationCount ( object tag ) : int
tag object The tag.
리턴 int

GetValidations() 공개 메소드

Gets all the field and business rule validations.
public GetValidations ( ) : List
리턴 List

GetValidations() 공개 메소드

Gets all the field and business rule validations with the specified tag.
public GetValidations ( object tag ) : List
tag object The tag.
리턴 List

GetWarningCount() 공개 메소드

Gets the number of field and business rule warnings inside this context.
public GetWarningCount ( ) : int
리턴 int

GetWarningCount() 공개 메소드

Gets the number of field and business rule warnings with the specified tag inside this context.
public GetWarningCount ( object tag ) : int
tag object The tag.
리턴 int

GetWarnings() 공개 메소드

Gets all field and business rule warnings.
public GetWarnings ( ) : List
리턴 List

GetWarnings() 공개 메소드

Gets all field and business rule warnings with the specified tag.
public GetWarnings ( object tag ) : List
tag object The tag.
리턴 List

RemoveBusinessRuleValidationResult() 공개 메소드

Removes the business rule validation result.
The is null.
public RemoveBusinessRuleValidationResult ( IBusinessRuleValidationResult businessRuleValidationResult ) : void
businessRuleValidationResult IBusinessRuleValidationResult The business rule validation result.
리턴 void

RemoveFieldValidationResult() 공개 메소드

Removes the field validation result.
The is null.
public RemoveFieldValidationResult ( IFieldValidationResult fieldValidationResult ) : void
fieldValidationResult IFieldValidationResult The field validation result.
리턴 void

ToString() 공개 메소드

Returns a System.String that represents this instance.
public ToString ( ) : string
리턴 string

ValidationContext() 공개 메소드

Initializes a new instance of the ValidationContext class.
public ValidationContext ( IEnumerable fieldValidationResults, IEnumerable businessRuleValidationResults ) : System
fieldValidationResults IEnumerable The field validation results. Can be null to add no field validation results.
businessRuleValidationResults IEnumerable The business rule validation results. Can be null to add no business rule validations.
리턴 System

ValidationContext() 공개 메소드

Initializes a new instance of the ValidationContext class.
public ValidationContext ( IEnumerable fieldValidationResults, IEnumerable businessRuleValidationResults, System.DateTime lastModified ) : System
fieldValidationResults IEnumerable The field validation results. Can be null to add no field validation results.
businessRuleValidationResults IEnumerable The business rule validation results. Can be null to add no business rule validations.
lastModified System.DateTime The last modified date/time.
리턴 System