Compartir a través de


Rule.GetPropertiesByCategory Method

Returns a dictionary of all properties partitioned into categories.

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 Function GetPropertiesByCategory As OrderedDictionary
public OrderedDictionary GetPropertiesByCategory()
public:
OrderedDictionary^ GetPropertiesByCategory()
member GetPropertiesByCategory : unit -> OrderedDictionary
public function GetPropertiesByCategory() : OrderedDictionary

Return Value

Type: OrderedDictionary
Returns a dictionary whose keys are the Category names and whose values are the list of properties in that category. The returned value is never nulla null reference (Nothing in Visual Basic).

Remarks

The returned list may contain auto-generated categories. If a BaseProperty (or its derived classes) refer to a property that is not specified, then an new Category is generated for it. If no category is specified for the property, then the property is put in the "General" category.

The list of categories is exactly as specified in the XAML file. The auto-generated categories come after the specified categories but in no strict order.

.NET Framework Security

See Also

Reference

Rule Class

Microsoft.Build.Framework.XamlTypes Namespace