Share via


BaseProperty.Category Property

Gets or sets the name of the category to which this property belongs.

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 Category As String
public string Category { get; set; }
public:
property String^ Category {
    String^ get ();
    void set (String^ value);
}
member Category : string with get, set
function get Category () : String 
function set Category (value : String)

Property Value

Type: System.String
Returns the name of the category to which this property belongs.

Remarks

If the value of this field does not correspond to the Name property of a Category element that is defined in the containing Rule class, a default Category that has this name is auto-generated and added to the containing Rule class.

This field is optional and is culture-invariant. When this field is not specified, this property is added to an auto-generated category named General (localized). This field cannot be set to the empty string.

.NET Framework Security

See Also

Reference

BaseProperty Class

Microsoft.Build.Framework.XamlTypes Namespace