When working with document types and properties within Umbraco 99% of the time you will be dealing with IPublishedContent and ids. If you use the Model Builder and you work with properties like a content picker, multi-node tree picker, nest content, related link media, or third-party packages like Vorto, you may sometime bump into Umbraco Uid. Umbraco ID's that look similar to this:
In this tutorial, you will learn about the different API's and techniques you can use with Umbraco in order to get the IPublishedContent
If you want to convert the Umbraco UID in code, you can use the Udi class, like so:
You could also use a slightly more dangerous approach (it's riskier as if the UDI is in the wrong format, it will throw an exception):
You could also pass the UDI into some of the more traditional Umbraco helpers, like UmbracoHelper passing in a string:
Or with a UDI class like:
As you can see, there are a number of ways to get an IPublishedContent from aUid, enjoy!