Compartilhar via


Método ISyncFilter.IsIdentical

Quando substituído em uma classe derivada, indica se o filtro especificado é igual a este filtro.

Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (em microsoft.synchronization.dll)

Sintaxe

'Declaração
Function IsIdentical ( _
    otherFilter As ISyncFilter _
) As Boolean
'Uso
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

Parâmetros

  • otherFilter
    Um filtro a ser comparado com este filtro.

Valor de retorno

true quando otherFilter é igual a este filtro. Caso contrário, false.

Exemplo

O exemplo a seguir verifica se o filtro é idêntico ao outro verificando se os dados do filtro são iguais aos dados do outro filtro.

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

Consulte também

Referência

Interface ISyncFilter
Membros ISyncFilter
Namespace Microsoft.Synchronization