/// <summary> /// Deletes a contact from the contact store. /// </summary> /// <param name="contact">Contact.</param> public void DeleteContact(CNMutableContact contact) { if (contact != null) { C.CNSaveRequest_deleteContact(SelfPtr(), contact.ToPointer()); } }
/// <summary> /// Adds the specified contact to the contact store. /// </summary> /// <param name="contact">Contact.</param> /// <param name="identifier">Identifier.</param> public void AddContactToContainerWithIdentifier(CNMutableContact contact, NSString identifier) { Util.NullArgumentTest(contact); C.CNSaveRequest_addContactToContainerWithIdentifier( SelfPtr(), contact.ToPointer(), identifier == null ? IntPtr.Zero : identifier.ToPointer()); }
/// <summary> /// Updates an existing contact in the contact store. /// </summary> /// <param name="contact">Contact.</param> public void UpdateContact(CNMutableContact contact) { Util.NullArgumentTest(contact); C.CNSaveRequest_updateContact(SelfPtr(), contact.ToPointer()); }