ArduinoBoard.SetSystemVariable 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| SetSystemVariable(SystemVariable, Int32) |
更新指定的系統變數。 |
| SetSystemVariable(SystemVariable, Int32, Int32) |
更新指定的系統變數。 |
SetSystemVariable(SystemVariable, Int32)
更新指定的系統變數。
public bool SetSystemVariable(Iot.Device.Arduino.SystemVariable variableId, int value);
member this.SetSystemVariable : Iot.Device.Arduino.SystemVariable * int -> bool
Public Function SetSystemVariable (variableId As SystemVariable, value As Integer) As Boolean
參數
- variableId
- SystemVariable
要更新的變數
- value
- Int32
新值
傳回
True 表示成功,否則為 false,否則 (檢查記錄輸出)
例外狀況
發生通訊錯誤
適用於
SetSystemVariable(SystemVariable, Int32, Int32)
更新指定的系統變數。
public bool SetSystemVariable(Iot.Device.Arduino.SystemVariable variableId, int pinNumber, int value);
member this.SetSystemVariable : Iot.Device.Arduino.SystemVariable * int * int -> bool
Public Function SetSystemVariable (variableId As SystemVariable, pinNumber As Integer, value As Integer) As Boolean
參數
- variableId
- SystemVariable
要更新的變數
- pinNumber
- Int32
要使用的針腳號碼,如果沒有相關,則為 -1
- value
- Int32
新值
傳回
True 表示成功,否則為 false,否則 (檢查記錄輸出)
例外狀況
發生通訊錯誤