共用方式為


ArduinoBoard.GetSystemVariable 方法

定義

多載

GetSystemVariable(SystemVariable, Int32)

查詢指定的系統變數。

GetSystemVariable(SystemVariable, Int32, Int32)

查詢指定的系統變數。

GetSystemVariable(SystemVariable, Int32)

查詢指定的系統變數。

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

參數

variableId
SystemVariable

要查詢的變數

value
Int32

接收值

傳回

如果成功則為 True,否則為 false,否則 (不支援的值等等。檢查記錄輸出)

例外狀況

傳送命令時發生錯誤

適用於

GetSystemVariable(SystemVariable, Int32, Int32)

查詢指定的系統變數。

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

參數

variableId
SystemVariable

要查詢的變數

pinNumber
Int32

如果不適用於指定的參數,則為使用 (-1 的針腳編號)

value
Int32

接收值

傳回

如果成功則為 True,否則為 false,否則 (不支援的值等等。檢查記錄輸出)

例外狀況

傳送命令時發生錯誤

適用於