Class ContactsList

Definition

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

A list of records with the same type.

C#
Copy
public class ContactsList : IDisposable
Inheritance
System.Object
ContactsList
Implements
System.IDisposable

Constructors

View Source

ContactsList()

Creates a contacts record list.

Declaration
C#
Copy
public ContactsList()
Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

OutOfMemoryException

Thrown when failed due to out of memory.

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

Properties

View Source

Count

The count of the contact entity.

Declaration
C#
Copy
public int Count { get; }
Property Value
Type Description
Int32

The count of the contact entity.

API Level: 4

Methods

View Source

AddRecord(ContactsRecord)

Adds a record to the contacts list.

Declaration
C#
Copy
public void AddRecord(ContactsRecord record)
Parameters
Type Name Description
ContactsRecord record

The record to add.

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 ContactsList. 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 ContactsList.

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
View Source

GetCurrentRecord()

Retrieves a record from the contacts list.

Declaration
C#
Copy
public ContactsRecord GetCurrentRecord()
Returns
Type Description
ContactsRecord

The contacts record.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

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

MoveFirst()

Moves a contacts list to the first position.

Declaration
C#
Copy
public void MoveFirst()
Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

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

MoveLast()

Moves a contacts list to the last position.

Declaration
C#
Copy
public void MoveLast()
Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

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

MoveNext()

Moves a contacts list to the next position.

Declaration
C#
Copy
public bool MoveNext()
Returns
Type Description
Boolean

When the cursor is already at the last position, it returns false.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

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

MovePrevious()

Moves a contacts list to the previous position.

Declaration
C#
Copy
public bool MovePrevious()
Returns
Type Description
Boolean

When the cursor is already at the first position, it returns false.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

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

RemoveRecord(ContactsRecord)

Removes a record from the contacts list.

Declaration
C#
Copy
public void RemoveRecord(ContactsRecord record)
Parameters
Type Name Description
ContactsRecord record

The record to remove.

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

Implements

System.IDisposable