/// <summary> /// Updates a fetched record. /// </summary> /// <param name="type">Type of modification mode.</param> /// <param name="record">Record to be modified.</param> public void Modify(ModifyView type, Record record) { int error = MsiInterop.MsiViewModify(this.Handle, Convert.ToInt32(type, CultureInfo.InvariantCulture), record.Handle); if (0 != error) { throw new MsiException(error); } }