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
)
abstract IsIdentical : 
        otherFilter:ISyncFilter -> bool 
function IsIdentical(
    otherFilter : ISyncFilter
) : boolean

Parameters

Return Value

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

Examples

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

Microsoft.Synchronization Namespace