Class ContactsVcard

Definition

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

A class for parsing and making the vCards.

C#
Copy
public static class ContactsVcard
Inheritance
System.Object
ContactsVcard
Remarks

It's based on the vCard v3.0 specification.

Methods

View Source

Compose(ContactsRecord)

Retrieves the vCard stream from a contacts record.

Declaration
C#
Copy
public static string Compose(ContactsRecord record)
Parameters
Type Name Description
ContactsRecord record

The contacts record.

Returns
Type Description
System.String

The vCard stream.

Exceptions
Type Condition
System.ArgumentException

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

OutOfMemoryException

Thrown when failed due to out of memory.

System.NotSupportedException

Thrown when the feature is not supported.

API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/contact.read
Feature: http://tizen.org/feature/contact
View Source

Parse(String)

Retrieves all the contacts with a contacts list from a vCard stream.

Declaration
C#
Copy
public static ContactsList Parse(string stream)
Parameters
Type Name Description
System.String stream

The vCard stream.

Returns
Type Description
ContactsList

The contacts list.

Exceptions
Type Condition
System.ArgumentException

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

OutOfMemoryException

Thrown when failed due to out of memory.

System.NotSupportedException

Thrown when the feature is not supported.

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

ParseForEach(String, ParseCallback)

Retrieves all the contacts with a record from a vCard file.

Declaration
C#
Copy
public static void ParseForEach(string path, ParseCallback callback)
Parameters
Type Name Description
System.String path

The file path of a vCard stream file.

ParseCallback callback

The callback function to invoke.

Exceptions
Type Condition
System.InvalidOperationException

Thrown when the method failed due to an invalid operation.

System.ArgumentException

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

OutOfMemoryException

Thrown when failed due to out of memory.

System.NotSupportedException

Thrown when the feature is not supported.

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