Class ContactsFilter

Definition

Namespace:
Tizen.Pims.Contacts
Assembly:
Tizen.Pims.Contacts.dll
API Level:
4

A filter includes the conditions for the search.

C#
Copy
public class ContactsFilter : IDisposable
Inheritance
ContactsFilter
Implements
System.IDisposable

Constructors

View Source

ContactsFilter(String, UInt32, Boolean)

Creates a filter with a condition for a boolean type property.

Declaration
C#
Copy
public ContactsFilter(string viewUri, uint propertyId, bool matchValue)
Parameters
Type Name Description
System.String viewUri

The view URI of a filter.

System.UInt32 propertyId

The property ID to add a condition.

Boolean matchValue

The match value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

OutOfMemoryException

Thrown when failed due to out of memory.

API Level: 4
Feature: http://tizen.org/feature/contact
View Source

ContactsFilter(String, UInt32, ContactsFilter.IntegerMatchType, Double)

Creates a filter with a condition for a double type property.

Declaration
C#
Copy
public ContactsFilter(string viewUri, uint propertyId, ContactsFilter.IntegerMatchType matchType, double matchValue)
Parameters
Type Name Description
System.String viewUri

The view URI of a filter.

System.UInt32 propertyId

The property ID to add a condition.

ContactsFilter.IntegerMatchType matchType

The match flag.

System.Double matchValue

The match value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

OutOfMemoryException

Thrown when failed due to out of memory.

API Level: 4
Feature: http://tizen.org/feature/contact
View Source

ContactsFilter(String, UInt32, ContactsFilter.IntegerMatchType, Int32)

Creates a filter with a condition for an integer type property.

Declaration
C#
Copy
public ContactsFilter(string viewUri, uint propertyId, ContactsFilter.IntegerMatchType matchType, int matchValue)
Parameters
Type Name Description
System.String viewUri

The view URI of a filter.

System.UInt32 propertyId

The property ID to add a condition.

ContactsFilter.IntegerMatchType matchType

The match flag.

System.Int32 matchValue

The match value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

OutOfMemoryException

Thrown when failed due to out of memory.

API Level: 4
Feature: http://tizen.org/feature/contact
View Source

ContactsFilter(String, UInt32, ContactsFilter.IntegerMatchType, Int64)

Creates a filter with a condition for a long type property.

Declaration
C#
Copy
public ContactsFilter(string viewUri, uint propertyId, ContactsFilter.IntegerMatchType matchType, long matchValue)
Parameters
Type Name Description
System.String viewUri

The view URI of a filter.

System.UInt32 propertyId

The property ID to add a condition.

ContactsFilter.IntegerMatchType matchType

The match flag.

System.Int64 matchValue

The match value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

OutOfMemoryException

Thrown when failed due to out of memory.

API Level: 4
Feature: http://tizen.org/feature/contact
View Source

ContactsFilter(String, UInt32, ContactsFilter.StringMatchType, String)

Creates a filter with a condition for a string type property.

Declaration
C#
Copy
public ContactsFilter(string viewUri, uint propertyId, ContactsFilter.StringMatchType matchType, string matchValue)
Parameters
Type Name Description
System.String viewUri

The view URI of a filter.

System.UInt32 propertyId

The property ID to add a condition.

ContactsFilter.StringMatchType matchType

The match flag.

System.String matchValue

The match value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

OutOfMemoryException

Thrown when failed due to out of memory.

API Level: 4
Feature: http://tizen.org/feature/contact

Methods

View Source

AddCondition(ContactsFilter.LogicalOperator, UInt32, Boolean)

Adds a condition for a boolean type property.

Declaration
C#
Copy
public void AddCondition(ContactsFilter.LogicalOperator logicalOperator, uint propertyId, bool matchValue)
Parameters
Type Name Description
ContactsFilter.LogicalOperator logicalOperator

The operator type.

System.UInt32 propertyId

The property ID to add a condition.

Boolean matchValue

The match value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

API Level: 4
Feature: http://tizen.org/feature/contact
View Source

AddCondition(ContactsFilter.LogicalOperator, UInt32, ContactsFilter.IntegerMatchType, Double)

Adds a condition for a double type property.

Declaration
C#
Copy
public void AddCondition(ContactsFilter.LogicalOperator logicalOperator, uint propertyId, ContactsFilter.IntegerMatchType matchType, double matchValue)
Parameters
Type Name Description
ContactsFilter.LogicalOperator logicalOperator

The operator type.

System.UInt32 propertyId

The property ID to add a condition.

ContactsFilter.IntegerMatchType matchType

The match flag.

System.Double matchValue

The match value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

API Level: 4
Feature: http://tizen.org/feature/contact
View Source

AddCondition(ContactsFilter.LogicalOperator, UInt32, ContactsFilter.IntegerMatchType, Int32)

Adds a condition for an integer type property.

Declaration
C#
Copy
public void AddCondition(ContactsFilter.LogicalOperator logicalOperator, uint propertyId, ContactsFilter.IntegerMatchType matchType, int matchValue)
Parameters
Type Name Description
ContactsFilter.LogicalOperator logicalOperator

The operator type.

System.UInt32 propertyId

The property ID to add a condition.

ContactsFilter.IntegerMatchType matchType

The match flag.

System.Int32 matchValue

The match value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

API Level: 4
Feature: http://tizen.org/feature/contact
View Source

AddCondition(ContactsFilter.LogicalOperator, UInt32, ContactsFilter.IntegerMatchType, Int64)

Adds a condition for a long type property.

Declaration
C#
Copy
public void AddCondition(ContactsFilter.LogicalOperator logicalOperator, uint propertyId, ContactsFilter.IntegerMatchType matchType, long matchValue)
Parameters
Type Name Description
ContactsFilter.LogicalOperator logicalOperator

The operator type.

System.UInt32 propertyId

The property ID to add a condition.

ContactsFilter.IntegerMatchType matchType

The match flag.

System.Int64 matchValue

The match value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

API Level: 4
Feature: http://tizen.org/feature/contact
View Source

AddCondition(ContactsFilter.LogicalOperator, UInt32, ContactsFilter.StringMatchType, String)

Adds a condition for a string type property.

Declaration
C#
Copy
public void AddCondition(ContactsFilter.LogicalOperator logicalOperator, uint propertyId, ContactsFilter.StringMatchType matchType, string matchValue)
Parameters
Type Name Description
ContactsFilter.LogicalOperator logicalOperator

The operator type.

System.UInt32 propertyId

The property ID to add a condition.

ContactsFilter.StringMatchType matchType

The match flag.

System.String matchValue

The match value.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

API Level: 4
Feature: http://tizen.org/feature/contact
View Source

AddFilter(ContactsFilter.LogicalOperator, ContactsFilter)

Adds a child filter to a parent filter.

Declaration
C#
Copy
public void AddFilter(ContactsFilter.LogicalOperator logicalOperator, ContactsFilter filter)
Parameters
Type Name Description
ContactsFilter.LogicalOperator logicalOperator

The operator type.

ContactsFilter filter

The child filter.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when one of the arguments provided to a method is not valid.

API Level: 4
Feature: http://tizen.org/feature/contact
View Source

Dispose()

Releases all the resources used by the ContactsFilter. It should be called after it has finished using the object.

Declaration
C#
Copy
public void Dispose()
API Level: 4
View Source

Dispose(Boolean)

Releases all the resources used by the ContactsFilter.

Declaration
C#
Copy
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

Disposing by the user.

API Level: 4
View Source

Finalize()

The destructor.

Declaration
C#
Copy
protected void Finalize()
API Level: 4

Implements

System.IDisposable