C# 클래스 ExoRule.Condition

Represents an condition established based on a specific ConditionType instance.
파일 보기 프로젝트 열기: vc3/ExoRule

공개 메소드들

메소드 설명
AddTarget ( object target ) : void

Adds an additional target to the condition.

Condition ( ConditionType type, object target ) : System

Creates a new Condition based on the specified ConditionType.

Condition ( ConditionType type, string message, object target ) : System

Creates a new Condition based on the specified ConditionType and error message.

GetConditions ( ModelInstance instance ) : IEnumerable

Gets the set of Condition instances associated with the specified ModelInstance.

GetConditions ( ModelInstance instance, bool>.Func filter ) : IEnumerable

Gets the set of Condition instances associated with the specified ModelInstance.

GetConditions ( object instance ) : IEnumerable

Gets the set of Condition instances associated with the specified ModelInstance.

비공개 메소드들

메소드 설명
AddTarget ( ModelInstance target, IEnumerable steps ) : void

Recursively attaches the current condition to targets in the model.

Destroy ( ) : void

Destroys the current exception.

메소드 상세

AddTarget() 공개 메소드

Adds an additional target to the condition.
public AddTarget ( object target ) : void
target object
리턴 void

Condition() 공개 메소드

Creates a new Condition based on the specified ConditionType.
public Condition ( ConditionType type, object target ) : System
type ConditionType
target object
리턴 System

Condition() 공개 메소드

Creates a new Condition based on the specified ConditionType and error message.
public Condition ( ConditionType type, string message, object target ) : System
type ConditionType
message string
target object
리턴 System

GetConditions() 공개 정적인 메소드

Gets the set of Condition instances associated with the specified ModelInstance.
public static GetConditions ( ModelInstance instance ) : IEnumerable
instance ModelInstance
리턴 IEnumerable

GetConditions() 공개 정적인 메소드

Gets the set of Condition instances associated with the specified ModelInstance.
public static GetConditions ( ModelInstance instance, bool>.Func filter ) : IEnumerable
instance ModelInstance
filter bool>.Func
리턴 IEnumerable

GetConditions() 공개 정적인 메소드

Gets the set of Condition instances associated with the specified ModelInstance.
public static GetConditions ( object instance ) : IEnumerable
instance object
리턴 IEnumerable