| 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)
Syntax public interface ISwitch : IDevice,
IClosable
Public Interface ISwitch
Inherits IDevice, IClosable
public interface class ISwitch : IDevice,
IClosable
type ISwitch =
interface
interface IDevice
interface IClosable
end
The ISwitch type exposes the following members.
Properties
| Name | Description |
---|
| IsOn |
Gets a value that indicates if the switch is on.
|
TopMethods
| Name | Description |
---|
| Close | Releases system resources that are exposed by a Windows Runtime object. (Inherited from IClosable.) |
TopEvents
| Name | Description |
---|
| Switched |
Occurs when the switch is switched.
|
TopSee Also