Skip to main content

Windows Dev Center

PnpObjectWatcher.Updated | updated event

Occurs when the properties of a PnpObject in the collection enumerated by the PnpObjectWatcher are updated.

Syntax


function onUpdated(eventArgs) { /* Your code */ }
 
// addEventListener syntax
pnpObjectWatcher.addEventListener("updated", onUpdated);
pnpObjectWatcher.removeEventListener("updated", onUpdated);
 
- or -

pnpObjectWatcher.onupdated = onUpdated;

public event TypedEventHandler<PnpObjectWatcher, PnpObjectUpdate> Updated

Public Event Updated As TypedEventHandler(Of PnpObjectWatcher, PnpObjectUpdate)

public:
event TypedEventHandler<PnpObjectWatcher, PnpObjectUpdate>^ Updated {
   Windows::Foundation::EventRegistrationToken add(TypedEventHandler<PnpObjectWatcher, PnpObjectUpdate>^ value);
   void remove(Windows::Foundation::EventRegistrationToken token);
}

Event information

Delegate TypedEventHandler<PnpObjectWatcher, PnpObjectUpdate>

Requirements ( device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Enumeration.Pnp
Windows::Devices::Enumeration::Pnp [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Enumeration.Pnp
Windows::Devices::Enumeration::Pnp [C++]

Metadata

Windows.winmd

See also

PnpObjectWatcher