C# Class Adf.Base.Validation.BusinessRuleValidationContext

Inheritance: IValidationContext
Datei anzeigen Open project: NLADP/ADF Class Usage Examples

Private Properties

Property Type Description
CloseScope void

Public Methods

Method Description
AddValidationResult ( ValidationResult result ) : void

Adds the supplied ValidationResult to its current ValidationResultCollectionScope.

BusinessRuleValidationContext ( ) : System

Initializes an instance of BusinessRuleValidationContext.

Clear ( ) : void

Clears the stack of type ValidationResultCollectionScope of this instance.

CreateValidationScope ( string scopeName ) : IDisposable

Creates and returns an instance of ValidationResultCollectionScope with the supplied scope name.

Private Methods

Method Description
CloseScope ( ) : void

Deletes the current scope and merges it to the next to the current scope.

Method Details

AddValidationResult() public method

Adds the supplied ValidationResult to its current ValidationResultCollectionScope.
public AddValidationResult ( ValidationResult result ) : void
result ValidationResult The supplied .
return void

BusinessRuleValidationContext() public method

Initializes an instance of BusinessRuleValidationContext.
public BusinessRuleValidationContext ( ) : System
return System

Clear() public method

Clears the stack of type ValidationResultCollectionScope of this instance.
public Clear ( ) : void
return void

CreateValidationScope() public method

Creates and returns an instance of ValidationResultCollectionScope with the supplied scope name.
public CreateValidationScope ( string scopeName ) : IDisposable
scopeName string The scope name.
return IDisposable