ISyncFilter::IsIdentical Method

When overridden in a derived class, indicates whether the specified filter is the same as this filter.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

bool IsIdentical(
	ISyncFilter^ otherFilter
)

Parameters

otherFilter
Type: Microsoft.Synchronization::ISyncFilter
A filter to compare with this filter.

Return Value

Type: System::Boolean
true when otherFilter is the same as this filter. Otherwise, false.

The following example checks whether the filter is identical to the other filter by checking whether the filter data is equal to the data of the other filter.

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);
}


Show: