IFilterResolutionService.CompareFilters(String, String) 方法

定義

傳回值,指出兩個指定的裝置篩選條件之間是否有父子關係。Returns a value indicating whether a parent-child relationship exists between two specified device filters.

public:
 int CompareFilters(System::String ^ filter1, System::String ^ filter2);
public int CompareFilters (string filter1, string filter2);
abstract member CompareFilters : string * string -> int
Public Function CompareFilters (filter1 As String, filter2 As String) As Integer

參數

filter1
String

裝置篩選條件名稱。A device filter name.

filter2
String

裝置篩選條件名稱。A device filter name

傳回

如果 filter1 所識別的裝置篩選條件是 filter2 所識別之篩選條件的父代,則為 1,如果 filter2 所識別的裝置篩選條件是 filter1 所識別之篩選條件的父代,則為 -1,如果這兩個篩選條件之間沒有父子關係,則為 0。1 if the device filter identified by filter1 is a parent of the filter identified by filter2, -1 if the device filter identified by filter2 is a parent of the filter identified by filter1, and 0 if there is no parent-child relationship between the two filters.

適用於