Used to represent the schema information for a Tool, a Custom Build Rule, a PropertyPage, and so on.
public ref class Rule sealed : Microsoft::Build::Framework::XamlTypes::RuleSchema, Microsoft::Build::Framework::XamlTypes::IProjectSchemaNode, System::ComponentModel::ISupportInitialize
[System.Windows.Markup.ContentProperty("Properties")] public sealed class Rule : Microsoft.Build.Framework.XamlTypes.RuleSchema, Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode, System.ComponentModel.ISupportInitialize
type Rule = class inherit RuleSchema interface ISupportInitialize interface IProjectSchemaNode
Public NotInheritable Class Rule Inherits RuleSchema Implements IProjectSchemaNode, ISupportInitialize
Typically represented on disk as XAML, only one instance of this class is maintained per XAML file per project engine (solution).
Parameterless constructor. Required for deserialization from a persisted format.
When this Rule represents a Build Customization, this field defines the semicolon-separated list of additional inputs to be evaluated for the Build Customization target.
When this Rule represents a Build Customization, this field represents the command-line template to be used by a Build Customization task to invoke the tool.
Gets or sets a description of this Rule for use by a prospective UI client.
Gets or sets a name that can be used by a prospective UI client to display this BaseProperty.
Returns the union of XAML specified Category categories and auto-generated Category categories. The latter are created from any missing categories that are referred to by the properties in this Rule. The auto-generated Category categories only have their names set.
When this Rule represents a Build Customization, this field represents the message to be displayed before a Build Customization is executed during the build.
When this Rule represents a Build Customization, this field represents the file name extension to associate.
Gets or sets Help information for this Rule.
Gets or sets arbitrary metadata that may be set on a rule.
The name of this Rule.
Gets or sets a suggestion to a prospective UI client for the relative location of this Rule compared to all other Rules in the system.
When this Rule represents a Build Customization, this field defines the semicolon-separated list of outputs that are to be evaluated for the Build Customization target.
Gets or sets the method to use when multiple rules with the same name appear in the project to reconcile the rules into one instance.
Gets or sets the UI rendering template that is used to display this Rule.
Gets or sets the list of properties in this Rule.
Gets or sets a flag indicating whether property pages for this rule are hidden.
Gets or sets a token that is used to separate a property switch from its value.
Gets or sets a flag that determines whether to hide the command-line category.
Gets or sets a flag that determines whether multiple files can be batched on one command-line invocation.
Gets or sets the name of the tool when this rule represents a tool.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Returns a dictionary of all properties partitioned into categories.
Returns the list of properties in a Category.
Gets the property with the specified name.
Returns an enumerator over all instances of static data that have the given type.
Returns an enumerator over all types of static data for the data-driven features that this node contains.
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string that represents the current object.(Inherited from Object)