Share via


RuleBag Class

A container for Rule instances.

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.

Inheritance Hierarchy

System.Object
  Microsoft.Build.Framework.XamlTypes.RuleBag

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

Syntax

'Declaration
<ContentPropertyAttribute("Rules")> _
Public NotInheritable Class RuleBag _
    Implements ISupportInitialize, IProjectSchemaNode
[ContentPropertyAttribute("Rules")]
public sealed class RuleBag : ISupportInitialize, 
    IProjectSchemaNode
[ContentPropertyAttribute(L"Rules")]
public ref class RuleBag sealed : ISupportInitialize, 
    IProjectSchemaNode
[<Sealed>]
[<ContentPropertyAttribute("Rules")>]
type RuleBag =  
    class 
        interface ISupportInitialize 
        interface IProjectSchemaNode 
    end
public final class RuleBag implements ISupportInitialize, IProjectSchemaNode

The RuleBag type exposes the following members.

Constructors

  Name Description
Public method RuleBag Default constructor. Required for XAML deserialization.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.

Top

Properties

  Name Description
Public property Rules The list of Rule instances that this RuleBag instance contains.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.

Top

Methods

  Name Description
Public method BeginInit See BeginInit.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.
Public method EndInit See EndInit.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.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetSchemaObjects Returns an enumerator over all instances of static data that have the given type. 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.
Public method GetSchemaObjectTypes Returns an enumerator over all types of static data for the data-driven features that this node contains.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.
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

Concerns only Rule rules, relative to property pages. The RuleBag is only used as a container for more than one Rule. The containing Rule rules are immediately stripped off after the XAML file is loaded.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Build.Framework.XamlTypes Namespace