共用方式為


GpioPinValueChangedEventArgs 類別

定義

提供 GpioPin.ValueChanged 事件的相關資料,這些事件會在一般用途 I/O 的值 (GPIO) 針腳變更時發生,可能是因為針腳設定為輸入時發生外部回應,或是當值寫入到釘選時設定為輸出時。

public ref class GpioPinValueChangedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GpioPinValueChangedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GpioPinValueChangedEventArgs
Public NotInheritable Class GpioPinValueChangedEventArgs
繼承
Object Platform::Object IInspectable GpioPinValueChangedEventArgs
屬性

Windows 需求

裝置系列
Windows IoT Extension SDK (已於 10.0.10240.0 引進)
API contract
Windows.Devices.DevicesLowLevelContract (已於 v1.0 引進)

備註

GpioPinValueChangedEventArgs 會傳遞至您針對 GpioPin.ValueChanged 事件實作的事件處理常式。

屬性

Edge

取得 GpioPin.ValueChanged 事件之一般用途 I/O (GPIO) 針腳所發生的變更類型。

適用於

另請參閱