GpioPinProviderValueChangedEventArgs 类

定义

提供有关 IGpioPinProvider.ValueChanged 事件的信息。

public ref class GpioPinProviderValueChangedEventArgs sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Gpio.Provider.IGpioPinProviderValueChangedEventArgsFactory, 131072, "Windows.Devices.DevicesLowLevelContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GpioPinProviderValueChangedEventArgs final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Gpio.Provider.IGpioPinProviderValueChangedEventArgsFactory), 131072, "Windows.Devices.DevicesLowLevelContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GpioPinProviderValueChangedEventArgs
function GpioPinProviderValueChangedEventArgs(edge)
Public NotInheritable Class GpioPinProviderValueChangedEventArgs
继承
Object Platform::Object IInspectable GpioPinProviderValueChangedEventArgs
属性

Windows 要求

设备系列
Windows IoT Extension SDK (在 10.0.10586.0 中引入)
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Devices.DevicesLowLevelContract (在 v2.0 中引入)

构造函数

GpioPinProviderValueChangedEventArgs(ProviderGpioPinEdge)

使用指定的边缘值构造 GpioPinProviderValueChangedEventArgs 类。

属性

Edge

获取 PIN 已更改为的值。

适用于