Show / Hide Table of Contents

Class Rule

A Rule holds Clauses and optionally has an Expression.

Inheritance
System.Object
Rule
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 Rule

Constructors

| Improve this Doc View Source

Rule(String)

The constructor for a Rule

Declaration
public Rule(string Name)
Parameters
Type Name Description
System.String Name

The Name of the rule

Properties

| Improve this Doc View Source

Clauses

The list of Clauses to apply

Declaration
public List<Clause> Clauses { get; set; }
Property Value
Type Description
System.Collections.Generic.List<Clause>
| Improve this Doc View Source

Description

A description of the rule

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

Expression

The boolean expression to apply over the Clauses.

If Expression is null the Clauses will be ANDed together.

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

Name

The name of the Rule

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

Severity

An int associated with the rule

Declaration
public int Severity { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Tags

A set of Tags assigned to the rule

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

Target

The Name of the targeted object's Type

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