GetButtonState Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets the state of a specified button.
Namespace: Microsoft.SPOT.Input
Assembly: Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)
Syntax
'Declaration
Public Function GetButtonState ( _
button As Button _
) As ButtonState
public ButtonState GetButtonState(
Button button
)
public:
ButtonState GetButtonState(
Button button
)
member GetButtonState :
button:Button -> ButtonState
public function GetButtonState(
button : Button
) : ButtonState
Parameters
- button
Type: Microsoft.SPOT.Hardware. . :: . .Button
A value that identifies the button whose state is to be retrieved.
Return Value
Type: Microsoft.SPOT.Input. . :: . .ButtonState
A value that indicates the current state of the specified button.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.