Manager. Begin Shutdown(ShutdownKind, TimeSpan) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Shuts down a device that runs in fixed-purpose mode, and optionally restarts the device after the specified number of seconds.
public: static void BeginShutdown(ShutdownKind shutdownKind, TimeSpan timeout);
static void BeginShutdown(ShutdownKind const& shutdownKind, TimeSpan const& timeout);
public static void BeginShutdown(ShutdownKind shutdownKind, System.TimeSpan timeout);
function beginShutdown(shutdownKind, timeout)
Public Shared Sub BeginShutdown (shutdownKind As ShutdownKind, timeout As TimeSpan)
The type of shutdown to perform, either with or without restarting the device.
The amount of time in seconds to wait before restarting the device if shutdownKind is ShutdownKind.Restart.
This API requires the use of the IoT systemManagement capability, and the inclusion of iot in the IgnorableNamespaces list. Users can add the following to their Package.appmanifest:
<iot:Capability Name="systemManagement"/>, and add iot to their existing list of IgnorableNamespaces.
Submit and view feedback for