C# - Shutting down IoT devices

By , 10/5/2015
(0 ratings)
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
ShutdownManager.BeginShutdown(ShutdownKind.Shutdown, TimeSpan.Zero);
Tagged with IoT, Windows10, Stutdown, Restart, System.

Comments

 

Log in, to comment!