IsIdentical Método
Cuando se invalida en una clase derivada, indica si el filtro especificado es igual que este filtro.
Espacio de nombres: Microsoft.Synchronization
Ensamblado: Microsoft.Synchronization (en Microsoft.Synchronization.dll)
Sintaxis
'Declaración
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
)
abstract IsIdentical :
otherFilter:ISyncFilter -> bool
function IsIdentical(
otherFilter : ISyncFilter
) : boolean
Parámetros
- otherFilter
Tipo: Microsoft.Synchronization. . :: . .ISyncFilter
Un filtro que se va a comparar con este filtro.
Valor devuelto
Tipo: System. . :: . .Boolean
true cuando otherFilter es igual que este filtro. En caso contrario, false.
Ejemplos
En el ejemplo siguiente se comprueba si el filtro es idéntico al otro filtro comprobando si los datos del filtro son iguales a los datos del otro 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);
}