get_attribute
Description:
Get the attribute name
from this.
The VCardAttribute is owned by evcard
and should not be
freed. If the attribute does not exist, null
is returned.
This will only return the first
attribute with the given name
. To get other attributes of that name (for example,
other TEL
attributes if a contact has multiple telephone numbers), use
get_attributes and iterate over the list searching for
matching attributes.
This method iterates over all attributes in the VCard, so should not be called often. If extracting a large number of attributes from a vCard, it is more efficient to iterate once over the list returned by get_attributes.
Parameters:
this |
an VCard |
name |
the name of the attribute to get |
Returns:
An VCardAttribute if found, or |