You will have to use a third party library. There are some free ones out there such as
iTextSharp[
^] or
PDFSharp[
^].
You can see the metadata information when right-clicking in Windows Explorer because you are likely using Adobe Acrobat, which installs Explorer extensions to add features like that to property pages and context menus.