Share via


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)

Syntax

'Declaration
Function IsIdentical ( _
    otherFilter As ISyncFilter _
) As Boolean
'Usage
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

Parameters

  • otherFilter
    A filter to compare with this filter.

Return Value

true when otherFilter is the same as this filter. Otherwise, false.

Example

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

See Also

Reference

ISyncFilter Interface
ISyncFilter Members
Microsoft.Synchronization Namespace