PropertyFilterAttribute.Match(Object) 方法

定義

傳回值,這個值表示目前 PropertyFilterAttribute .NET Framework 屬性的屬性篩選選項是否符合所提供對象的屬性篩選選項。

public:
 override bool Match(System::Object ^ value);
public override bool Match (object value);
override this.Match : obj -> bool
Public Overrides Function Match (value As Object) As Boolean

參數

value
Object

要比較的物件。 這個物件必須是 PropertyFilterAttribute

傳回

如果有相符項目,則為 true,否則為 false

備註

對於儲存旗標的屬性,若為 PropertyFilterAttributetrue, Match 則結果可能會與 Equals 結果不同。 例如,的 SetValues 篩選符合 的篩選條件 All,因為 All 是所有篩選值的合併。

適用於