Interface IBuildsRelativeRuleIdentifier
A builder object which may indicate optional information about the rule being referred-to.
Namespace: CSF.Validation.ValidatorBuilding
Assembly: CSF.Validation.Abstractions.dll
Syntax
public interface IBuildsRelativeRuleIdentifier
Methods
| Improve this Doc View SourceForMember(String)
Optionally indicates the member name which is validated by the rule which is being referred-to.
Declaration
IBuildsRelativeRuleIdentifier ForMember(string memberName)
Parameters
Type | Name | Description |
---|---|---|
System.String | memberName | The member name |
Returns
Type | Description |
---|---|
IBuildsRelativeRuleIdentifier | A builder instance so that methods may be chained. |
FromAncestorLevel(Int32)
Optionally indicates the number of ancestor levels (within the validated-object hierarchy) which must be traversed to reach the rule which is being referred-to.
Declaration
IBuildsRelativeRuleIdentifier FromAncestorLevel(int ancestorLevels)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ancestorLevels | The number of ancestor levels. |
Returns
Type | Description |
---|---|
IBuildsRelativeRuleIdentifier | A builder instance so that methods may be chained. |
Named(String)
Optionally indicates the name of the rule which is being referred-to.
Declaration
IBuildsRelativeRuleIdentifier Named(string ruleName)
Parameters
Type | Name | Description |
---|---|---|
System.String | ruleName | The rule name |
Returns
Type | Description |
---|---|
IBuildsRelativeRuleIdentifier | A builder instance so that methods may be chained. |