共用方式為


I2cDevice.ConnectionSettings 屬性

定義

取得用於與整合式線路通訊的連線設定, (I2 C) 裝置。

public:
 property I2cConnectionSettings ^ ConnectionSettings { I2cConnectionSettings ^ get(); };
I2cConnectionSettings ConnectionSettings();
public I2cConnectionSettings ConnectionSettings { get; }
var i2cConnectionSettings = i2cDevice.connectionSettings;
Public ReadOnly Property ConnectionSettings As I2cConnectionSettings

屬性值

用於與整合式線路通訊的連線設定, (I2 C) 裝置。

Windows 需求

應用程式功能
lowLevel

備註

如果您嘗試變更透過此屬性取得的 I2cConnectionSettings 物件值,這些變更將不會有任何作用。 建立 I2cDevice 物件之後,您無法變更連線設定。 若要指定連線設定,請使用I2cConnectionSettings (Int32) 建構函式來建立I2cConnectionSettings 物件,並設定該 I2cConnectionSettings物件的屬性值,再將它傳遞至FromIdAsync方法來建立I2cDevice物件。

適用於

另請參閱