This single line of code shutting down a Windows IoT device. Required is a reference to the IoT Extensions and a capability for System management. The types can be found inside the Windows.System namespace.
In case you did not know how to meet all requiredments I blogged about it: http://code-13.net/Content/Blog/1252
By the way, there is also a ShutdownKind for restarting the System: Restart
Translate to VB