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 SourceRule(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 SourceClauses
The list of Clauses to apply
Declaration
public List<Clause> Clauses { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Clause> |
Description
A description of the rule
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
Name
The name of the Rule
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Severity
An int associated with the rule
Declaration
public int Severity { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Tags
A set of Tags assigned to the rule
Declaration
public string[] Tags { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
Target
The Name of the targeted object's Type
Declaration
public string Target { get; set; }
Property Value
Type | Description |
---|---|
System.String |