  | ISwitch Interface | 
            The interface for an input switch that can be toggled on and off.
            
 
Namespace: Microsoft.IoT.DeviceCore.InputAssembly: Microsoft.IoT.DeviceCore (in Microsoft.IoT.DeviceCore.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic interface ISwitch : IDevice, 
	IClosable
Public Interface ISwitch
	Inherits IDevice, IClosable
public interface class ISwitch : IDevice, 
	IClosable
type ISwitch =  
    interface
        interface IDevice
        interface IClosable
    endThe ISwitch type exposes the following members.
Properties| 
								 
							 | Name | Description | 
|---|
  | IsOn | 
            Gets a value that indicates if the switch is on.
              | 
Top
Methods| 
								 
							 | Name | Description | 
|---|
  | Close | Releases system resources that are exposed by a Windows Runtime object.  (Inherited from IClosable.) | 
Top
Events| 
								 
							 | Name | Description | 
|---|
  | Switched | 
            Occurs when the switch is switched.
              | 
Top
See Also