You may look up the Family Reference Manual section 17: 10-bit ADC.
In the product webpage for the PIC device you have,https://www.microchip.com/wwwproducts/en/PIC32MX460F512L
open the Documents tab, and scroll for the A/D Converter document.
It have detailed description of the ADC module, with list of what settings to consider, and example code for various modes of operation.
When you have a understanding of what is needed,
it may also be possible to use MCC: Microchip Code Configurator, to make some example code for the AD converter.
Now, MCC do not support the PIC32MX460, so you will have to cheat somewhat.
PIC32MX450... and PIC32MX470F512L have ANSELx registers, and more Analog input pins than your PIC32MX460, which have AD1PCFG registers to choose between Analog and Digital inputs.
Apart from this, the A/D converter itself is very similar.