ContextRuleMetadata Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents information about a context rule to be monitored. A context rule consists of a set of terms and an expression that describes how the terms are combined.
public ref class ContextRuleMetadata
[System.Runtime.Serialization.DataContract]
public class ContextRuleMetadata
[<System.Runtime.Serialization.DataContract>]
type ContextRuleMetadata = class
Public Class ContextRuleMetadata
- Inheritance
-
ContextRuleMetadata
- Attributes
Remarks
As an example, consider the following context rule:
Expression: "(IsCSharp & ConfigFileAdded) | IsVB"
Terms: {
"IsCSharp": "SolutionHasProjectCapability:CSharp",
"ConfigFileAdded": "ProjectAddedItem:.config$",
"IsVB": "SolutionHasProjectCapability:VB"
}
Constructors
ContextRuleMetadata(String, String, IReadOnlyDictionary<String,String>) |
Initializes a new instance of the ContextRuleMetadata class. |
Properties
Expression |
Gets the rule's expression. |
Identifier |
Gets the rule's identifier. |
Terms |
Gets the set of terms to be evaluated. |