The code sample demonstrates various VHD API usage, such as VHD creation, attaching, detaching and getting and setting disk information.