Show / Hide Table of Contents

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 Source

ForMember(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
  • Methods
    • ForMember(String)
    • FromAncestorLevel(Int32)
    • Named(String)
Back to top Generated by DocFX