Class ContactsManager

Definition

Namespace:
Tizen.Pims.Contacts
Assembly:
Tizen.Pims.Contacts.dll

A class for managing the contact information. It allows the applications to access the contacts database.

C#
Copy
public class ContactsManager : IDisposable
Inheritance
object
ContactsManager
Implements
System.IDisposable

Constructors

View Source

ContactsManager()

Creates a ContactsManager.

Declaration
C#
Copy
public ContactsManager()
Exceptions
Type Condition
System.InvalidOperationException

Thrown when the method failed due to an invalid operation.

System.NotSupportedException

Thrown when the feature is not supported.

Properties

View Source

Database

A ContactsDatabase.

Declaration
C#
Copy
public ContactsDatabase Database { get; }
Property Value
Type Description
ContactsDatabase

A ContactsDatabase.

View Source

NameDisplayOrder

A setting value of the contacts name display order.

Declaration
C#
Copy
public ContactDisplayOrder NameDisplayOrder { get; set; }
Property Value
Type Description
ContactDisplayOrder

A setting value of the contacts name display order.

Remarks

DisplayName of the contacts returned from the database is determined by this property.

View Source

NameSortingOrder

A setting value of the contacts name sorting order.

Declaration
C#
Copy
public ContactSortingOrder NameSortingOrder { get; set; }
Property Value
Type Description
ContactSortingOrder

A setting value of the contacts name sorting order.

Remarks

Contacts returned from the database are first sorted based on the first name or last name by this property.

Methods

View Source

Dispose()

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

Declaration
C#
Copy
public void Dispose()
View Source

Dispose(bool)

Releases all the resources used by the ContactsManager.

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

Disposing by the user.

View Source

~ContactsManager()

The destructor.

Declaration
C#
Copy
protected ~ContactsManager()

Events

View Source

NameDisplayOrderChanged

(event) NameDisplayOrderChanged is raised when changing the setting value of the contacts name display order.

Declaration
C#
Copy
public event EventHandler<NameDisplayOrderChangedEventArgs> NameDisplayOrderChanged
Event Type
Type Description
System.EventHandler<TEventArgs><NameDisplayOrderChangedEventArgs>
View Source

NameSortingOrderChanged

(event) NameSortingOrderChanged is raised when changing the setting value of the contacts name sorting order.

Declaration
C#
Copy
public event EventHandler<NameSortingOrderChangedEventArgs> NameSortingOrderChanged
Event Type
Type Description
System.EventHandler<TEventArgs><NameSortingOrderChangedEventArgs>

Implements

System.IDisposable