在派生类中重写时,指示 CategoryEntry 是否与某个谓词匹配。
命名空间: Microsoft.Windows.Design.PropertyEditing
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public MustOverride Function MatchesPredicate ( _
predicate As PropertyFilterPredicate _
) As Boolean
public abstract bool MatchesPredicate(
PropertyFilterPredicate predicate
)
public:
virtual bool MatchesPredicate(
PropertyFilterPredicate^ predicate
) abstract
abstract MatchesPredicate :
predicate:PropertyFilterPredicate -> bool
public abstract function MatchesPredicate(
predicate : PropertyFilterPredicate
) : boolean
参数
- predicate
类型:Microsoft.Windows.Design.PropertyEditing.PropertyFilterPredicate
要比较的谓词。
返回值
类型:System.Boolean
如果 CategoryEntry 与该谓词匹配,则为 true;否则为 false。
实现
IPropertyFilterTarget.MatchesPredicate(PropertyFilterPredicate)
备注
根据 CategoryEntry 与谓词是否匹配,此属性可用于触发对 PropertyContainer 的更改。 例如,宿主可以折叠类别(如果适用)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.PropertyEditing 命名空间