ArduinoBoard.GetSystemVariable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetSystemVariable(SystemVariable, Int32) |
Queries the given system variable. |
GetSystemVariable(SystemVariable, Int32, Int32) |
Queries the given system variable. |
GetSystemVariable(SystemVariable, Int32)
Queries the given system variable.
public bool GetSystemVariable (Iot.Device.Arduino.SystemVariable variableId, out int value);
member this.GetSystemVariable : Iot.Device.Arduino.SystemVariable * int -> bool
Public Function GetSystemVariable (variableId As SystemVariable, ByRef value As Integer) As Boolean
Parameters
- variableId
- SystemVariable
The variable to query
- value
- Int32
Receives the value
Returns
True on success, false otherwise (value not supported, etc. Check the log output)
Exceptions
There was an error sending the command
Applies to
GetSystemVariable(SystemVariable, Int32, Int32)
Queries the given system variable.
public bool GetSystemVariable (Iot.Device.Arduino.SystemVariable variableId, int pinNumber, out int value);
member this.GetSystemVariable : Iot.Device.Arduino.SystemVariable * int * int -> bool
Public Function GetSystemVariable (variableId As SystemVariable, pinNumber As Integer, ByRef value As Integer) As Boolean
Parameters
- variableId
- SystemVariable
The variable to query
- pinNumber
- Int32
The pin number to use (-1 if not applicable for the given parameter)
- value
- Int32
Receives the value
Returns
True on success, false otherwise (value not supported, etc. Check the log output)
Exceptions
There was an error sending the command
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for