EBookContacts.VCard.add_attribute_with_value

### Method

# EBookContacts VCardadd_attribute_with_value

#### Declaration [src]

    void
    e_vcard_add_attribute_with_value (
      EVCard* evcard,
      EVCardAttribute* attr,
      const gchar* value
    )

#### Description [src]

Prepends `attr` to `evcard`, setting it to `value`. This takes ownership of `attr`.

This is a convenience wrapper around `e_vcard_attribute_add_value()` and e_vcard_add_attribute().

See also e_vcard_add_attribute_with_value_take(), e_vcard_append_attribute_with_value().

#### Parameters

`attr`

  Type: `EVCardAttribute`

  An `EVCardAttribute` to add.

  The instance takes ownership of the data, and is responsible for freeing it.

`value`

  Type: `const gchar*`

  A value to assign to the attribute.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.