GpioDriver.WaitForEvent(Int32, PinEventTypes, CancellationToken) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
阻止执行,直到收到 eventType 类型的事件或请求取消。
protected internal abstract System.Device.Gpio.WaitForEventResult WaitForEvent(int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Threading.CancellationToken cancellationToken);
abstract member WaitForEvent : int * System.Device.Gpio.PinEventTypes * System.Threading.CancellationToken -> System.Device.Gpio.WaitForEventResult
Protected Friend MustOverride Function WaitForEvent (pinNumber As Integer, eventTypes As PinEventTypes, cancellationToken As CancellationToken) As WaitForEventResult
参数
- pinNumber
- Int32
驱动程序的逻辑编号方案中的引脚编号。
- eventTypes
- PinEventTypes
要等待的事件类型。
- cancellationToken
- CancellationToken
操作应停止等待事件的取消标记。
返回
包含等待操作结果的 结构。