PropertyFilter 类

定义

为属性编辑宿主提供筛选功能。Provides filtering functionality for a property editing host.

public ref class PropertyFilter
public class PropertyFilter
type PropertyFilter = class
Public Class PropertyFilter
继承
PropertyFilter

注解

包含一个名为谓词的字符串列表,这些字符串与目标属性名进行比较,直到找到匹配项为止。Contains a list of strings, called predicates, that are compared against a target property name until a match is found.

构造函数

PropertyFilter(IEnumerable<PropertyFilterPredicate>)

创建 PropertyFilter 类的新实例,该实例包含筛选字符串的枚举。这些字符串称为“谓词”,可与目标属性名进行比较,直到找到匹配项为止。Creates a new instance of the PropertyFilter class that includes an enumeration of filtering strings, called predicates, that can be compared against a target property name until a match is found.

PropertyFilter(String)

创建 PropertyFilter 类的新实例,该实例包含 String,而后者包含用空格分隔的筛选短语序列。这些短语称为“谓词”,可与目标属性名进行比较,直到找到匹配项为止。Creates a new instance of the PropertyFilter class that includes a String that contains a space-delimited sequence of filtering phrases, called predicates, that can be compared against a target property name until a match is found.

属性

IsEmpty

一个只读属性,指示此 PropertyFilter 是否不包含任何筛选谓词。Read-only property that indicates whether this PropertyFilter does not have any filtering predicates.

方法

Equals(Object)

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

(继承自 Object)
GetHashCode()

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

(继承自 Object)
GetType()

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

(继承自 Object)
Match(IPropertyFilterTarget)

将当前筛选对象的谓词字符串与指定的目标属性名相匹配,并返回一个 Boolean 值,指示是否有一个或多个谓词字符串与目标名称相匹配,或此 PropertyFilter 不包含任何谓词。Matches the predicate strings of the current filtering object against the specified target property name and returns a Boolean that indicates whether one or more of the predicate strings matches the target name or whether this PropertyFilter does not have any predicates.

MemberwiseClone()

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

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于