error = Interop.Filter.ContactsFilterAddStr(_filterHandle, propertyId, matchType, matchValue);
if ((int)ContactsError.None != error)
{
+ Interop.Filter.ContactsFilterDestroy(_filterHandle);
Log.Error(Globals.LogTag, "ContactsFilter Failed with error " + error);
throw ContactsErrorFactory.CheckAndCreateException(error);
}
error = Interop.Filter.ContactsFilterAddInt(_filterHandle, propertyId, matchType, matchValue);
if ((int)ContactsError.None != error)
{
+ Interop.Filter.ContactsFilterDestroy(_filterHandle);
Log.Error(Globals.LogTag, "ContactsFilter Failed with error " + error);
throw ContactsErrorFactory.CheckAndCreateException(error);
}
error = Interop.Filter.ContactsFilterAddLli(_filterHandle, propertyId, matchType, matchValue);
if ((int)ContactsError.None != error)
{
+ Interop.Filter.ContactsFilterDestroy(_filterHandle);
Log.Error(Globals.LogTag, "ContactsFilter Failed with error " + error);
throw ContactsErrorFactory.CheckAndCreateException(error);
}
error = Interop.Filter.ContactsFilterAddDouble(_filterHandle, propertyId, matchType, matchValue);
if ((int)ContactsError.None != error)
{
+ Interop.Filter.ContactsFilterDestroy(_filterHandle);
Log.Error(Globals.LogTag, "ContactsFilter Failed with error " + error);
throw ContactsErrorFactory.CheckAndCreateException(error);
}
error = Interop.Filter.ContactsFilterAddBool(_filterHandle, propertyId, matchValue);
if ((int)ContactsError.None != error)
{
+ Interop.Filter.ContactsFilterDestroy(_filterHandle);
Log.Error(Globals.LogTag, "ContactsFilter Failed with error " + error);
throw ContactsErrorFactory.CheckAndCreateException(error);
}