Show / Hide Table of Contents

Class Violation

A violation found when validating rules

Inheritance
System.Object
Violation
Inherited Members
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)
System.Object.ToString()
Namespace: Microsoft.CST.OAT
Assembly: OAT.dll
Syntax
public class Violation

Constructors

| Improve this Doc View Source

Violation(String, Rule)

Simplest constructor.

Arguments may not be null.

Declaration
public Violation(string description, Rule rule)
Parameters
Type Name Description
System.String description

The description for the violation.

Rule rule

The Rule the violation references

Exceptions
Type Condition
System.ArgumentNullException

Thrown when any parameter is null.

| Improve this Doc View Source

Violation(String, Rule, Clause)

Use this constructor if you have only a single clause

Arguments may not be null.

Declaration
public Violation(string description, Rule rule, Clause clause)
Parameters
Type Name Description
System.String description

The description for the violation.

Rule rule

The Rule the violation references

Clause clause

The Clause the violation references

Exceptions
Type Condition
System.ArgumentNullException

Thrown when any parameter is null.

| Improve this Doc View Source

Violation(String, Rule, Clause[])

Use this constructor if you have multiple clauses.

Arguments may not be null.

Declaration
public Violation(string description, Rule rule, Clause[] clauses)
Parameters
Type Name Description
System.String description

The description for the violation.

Rule rule

The Rule the violation references

Clause[] clauses

The Clauses the violation references

Exceptions
Type Condition
System.ArgumentNullException

Thrown when any parameter is null.

Properties

| Improve this Doc View Source

Clauses

The clauses associated with this violation

Declaration
public Clause[] Clauses { get; set; }
Property Value
Type Description
Clause[]
| Improve this Doc View Source

Description

The text description of the violation

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

Rule

The Rule associated with this violation

Declaration
public Rule Rule { get; set; }
Property Value
Type Description
Rule
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX