Share via


PosPower.RestartPos Method

2/27/2008

Restarts the POS system independent of the power state.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public Overridable Sub RestartPos
public virtual void RestartPos ()
public:
virtual void RestartPos ()
public void RestartPos ()
public function RestartPos ()

Remarks

If the Claimed property for the PosPower device is set to true and an application that does not have the device claimed calls RestartPos, the service object will throw a PosControlException exception.

If the CapRestartPos property is false and the application tries to call RestartPos, the service object will throw an Illegal exception.

When the service object starts the system restart, it sends a StatusUpdateEvent event of StatusRestart to one or all applications, depending on whether the device is currently shareable.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

PosPower Class
PosPower Members
Microsoft.PointOfService Namespace