Share via


Rule.Categories Property

Gets or sets the list of Category categories that the properties in this Rule belong to.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Framework.XamlTypes
Assembly:  Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)

Syntax

'Declaration
Public Property Categories As List(Of Category)
public List<Category> Categories { get; set; }
public:
property List<Category^>^ Categories {
    List<Category^>^ get ();
    void set (List<Category^>^ value);
}
member Categories : List<Category> with get, set
function get Categories () : List<Category>
function set Categories (value : List<Category>)

Property Value

Type: List<Category>
Returns the list of properties.

Remarks

This field is optional. The field returns only the categories that were explicitly defined and that do not contain any auto-generated categories. When a BaseProperty that is contained in this Rule declares its category to be something that is not present in this list, then a Category that has that name is auto-generated and added to the internal list of categories. That auto-generated category is not returned by this field.

.NET Framework Security

See Also

Reference

Rule Class

Microsoft.Build.Framework.XamlTypes Namespace