在衍生類別中覆寫時,指出指定的篩選是否與此篩選相同。
命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization (在 microsoft.synchronization.dll)
語法
'宣告
Function IsIdentical ( _
otherFilter As ISyncFilter _
) As Boolean
'用途
Dim instance As ISyncFilter
Dim otherFilter As ISyncFilter
Dim returnValue As Boolean
returnValue = instance.IsIdentical(otherFilter)
bool IsIdentical (
ISyncFilter otherFilter
)
bool IsIdentical (
ISyncFilter^ otherFilter
)
boolean IsIdentical (
ISyncFilter otherFilter
)
function IsIdentical (
otherFilter : ISyncFilter
) : boolean
參數
- otherFilter
要與此篩選相比較的篩選。
傳回值
當 otherFilter 與此篩選相同時,則為 true,否則為 false。
範例
下列範例會檢查此篩選是否與其他篩選相同,方法是檢查此篩選資料是否等於其他篩選的資料。
Public Function IsIdentical(ByVal otherFilter As ISyncFilter) As Boolean Implements ISyncFilter.IsIdentical
Return _filter.Equals(DirectCast(otherFilter, AddressFilter).Filter)
End Function
public bool IsIdentical(ISyncFilter otherFilter)
{
return _filter.Equals(((AddressFilter)otherFilter).Filter);
}
請參閱
參考
ISyncFilter 介面
ISyncFilter 成員
Microsoft.Synchronization 命名空間