Click or drag to resize
ISwitch Interface
The interface for an input switch that can be toggled on and off.

Namespace: Microsoft.IoT.DeviceCore.Input
Assembly: Microsoft.IoT.DeviceCore (in Microsoft.IoT.DeviceCore.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface ISwitch : IDevice, 
	IClosable

The ISwitch type exposes the following members.

Properties
  NameDescription
Public propertyIsOn
Gets a value that indicates if the switch is on.
Top
Methods
  NameDescription
Public methodClose
Releases system resources that are exposed by a Windows Runtime object.
(Inherited from IClosable.)
Top
Events
  NameDescription
Public eventSwitched
Occurs when the switch is switched.
Top
See Also