Compartir a través de


ContextRuleMetadata Class

Definition

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.

Applies to