The digital input indexer list. This gets the state of a digital input at the supplied index in the list.

Namespace:  Phidgets
Assembly:  Phidget21.NET (in Phidget21.NET.dll) Version: 2.1.9.34

Syntax

C#
public bool this[
	int index
] { get; }
Visual Basic (Declaration)
Public ReadOnly Default Property Item ( _
	index As Integer _
) As Boolean
Visual C++
public:
property bool default[int index] {
	bool get (int index);
}

Parameters

index
Type: System..::.Int32
Index of the input.

Return Value

State of the input.

Remarks

Digital inputs read True where they are activated and false when they are in their default state.

Exceptions

ExceptionCondition
Phidgets..::.PhidgetExceptionIf this Phidget is not opened and attached, or if the index is out of range.

See Also