共用方式為


IGpioPinProvider.ValueChanged 事件

定義

釘選值變更時引發的事件。

// Register
event_token ValueChanged(TypedEventHandler<IGpioPinProvider, GpioPinProviderValueChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void ValueChanged(event_token const* cookie) const;

// Revoke with event_revoker
IGpioPinProvider::ValueChanged_revoker ValueChanged(auto_revoke_t, TypedEventHandler<IGpioPinProvider, GpioPinProviderValueChangedEventArgs const&> const& handler) const;
event TypedEventHandler<IGpioPinProvider,GpioPinProviderValueChangedEventArgs> ValueChanged;
function onValueChanged(eventArgs) { /* Your code */ }
iGpioPinProvider.addEventListener("valuechanged", onValueChanged);
iGpioPinProvider.removeEventListener("valuechanged", onValueChanged);
- or -
iGpioPinProvider.onvaluechanged = onValueChanged;
Event ValueChanged As TypedEventHandler(Of IGpioPinProvider, GpioPinProviderValueChangedEventArgs) 

事件類型

適用於

另請參閱