RuleBag 类

定义

Rule 实例的容器。A container for Rule instances.

public ref class RuleBag sealed : Microsoft::Build::Framework::XamlTypes::IProjectSchemaNode, System::ComponentModel::ISupportInitialize
[System.Windows.Markup.ContentProperty("Rules")]
public sealed class RuleBag : Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode, System.ComponentModel.ISupportInitialize
type RuleBag = class
    interface ISupportInitialize
    interface IProjectSchemaNode
Public NotInheritable Class RuleBag
Implements IProjectSchemaNode, ISupportInitialize
继承
RuleBag
属性
实现

注解

Rule关心与属性页相关的规则。Concerns only Rule rules, relative to property pages. 仅用作多个Rule容器的容器。 RuleBagThe RuleBag is only used as a container for more than one Rule. 在加载Rule XAML 文件后,将立即去除包含规则。The containing Rule rules are immediately stripped off after the XAML file is loaded.

构造函数

RuleBag()

无参数构造函数。Parameterless constructor. 这是 XAML 反序列化所必需的。Required for XAML deserialization.

属性

Rules

Rule 实例包含的 RuleBag 实例的列表。The list of Rule instances that this RuleBag instance contains.

方法

BeginInit()

请参阅 BeginInit()See BeginInit().

EndInit()

请参阅 EndInit()See EndInit().

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetSchemaObjects(Type)

返回针对具有给定类型的静态数据的所有实例的枚举器。Returns an enumerator over all instances of static data that have the given type.

GetSchemaObjectTypes()

返回针对此节点包含的数据驱动功能的静态数据的所有类型的枚举器。Returns an enumerator over all types of static data for the data-driven features that this node contains.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于