Show / Hide Table of Contents

Class RuleIdentifier

A model for information which uniquely identifies a validation rule within the validation process.

Inheritance
System.Object
RuleIdentifierBase
RuleIdentifier
Inherited Members
RuleIdentifierBase.RuleType
RuleIdentifierBase.RuleName
RuleIdentifierBase.ValidatedType
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: CSF.Validation.Rules
Assembly: CSF.Validation.Abstractions.dll
Syntax
public class RuleIdentifier : RuleIdentifierBase

Constructors

| Improve this Doc View Source

RuleIdentifier(ManifestRule, Object)

Initializes a new instance of RuleIdentifier based upon an instance of ManifestRule.

Declaration
public RuleIdentifier(ManifestRule manifestRule, object objectIdentity)
Parameters
Type Name Description
ManifestRule manifestRule

The manifest rule.

System.Object objectIdentity

The identity of the validated object.

| Improve this Doc View Source

RuleIdentifier(Type, Type, Object, String, String)

Initializes a new instance of RuleIdentifier.

Declaration
public RuleIdentifier(Type ruleType, Type validatedValueType, object objectIdentity, string memberName = null, string ruleName = null)
Parameters
Type Name Description
System.Type ruleType

The rule type.

System.Type validatedValueType

The type of value that the rule validates.

System.Object objectIdentity

The object identity.

System.String memberName

An optional member name.

System.String ruleName

An optional rule name.

Properties

| Improve this Doc View Source

MemberName

Gets the name of the member whose value is being validated by this rule.

Declaration
public string MemberName { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ObjectIdentity

The unique identity of the object being validated.

Declaration
public object ObjectIdentity { get; }
Property Value
Type Description
System.Object

Methods

| Improve this Doc View Source

ToString()

Gets a string which represents the current rule identifier.

Declaration
public override string ToString()
Returns
Type Description
System.String

A human-readable string.

Overrides
System.Object.ToString()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX