Share via


WPDObject object

The WPDObject represents a generic object on the device. The Service object and the Storage object both inherit their functionality from WPDObject.

Examples of how to use the methods, properties, and events listed here for WPDObject can be found in the corresponding pages of the Service Object and Storage Object sections.

Members

The WPDObject object has these types of members:

Events

The WPDObject object has these events.

Event Description
onAddChildComplete Occurs when an AddChild operation has completed.
onRemoveChildComplete Occurs when an RemoveChild operation has completed.

Methods

The WPDObject object has these methods.

Method Description
AddChild Adds a WPDObject obtained from the Service.CreateNewObject() method or the Storage.CreateNewObject() method, as a child of this object.
GetChildrenByFormat Returns a collection of the immediate children of this object filtered by one or more data formats.
RemoveChild Deletes a child object from this object.

Properties

The WPDObject object has these properties.

Property Access type Description
Children
Read-only
Gets a collection of all of the immediate children of this object.
Parent
Read-only
Gets the immediate parent of this object.
Resource
Read/write
Provides read/write access to this object's resource.
Service
Read-only
Gets the Service object that contains this WPDObject.
ServiceProperty
Read/write
Gets or sets a service-defined property for this object.
Storage
Read-only
Gets the Storage object that contains this WPDObject.
WpdProperty
Read/write
Gets or sets a pre-defined WPD property for this object.

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]

See also

About the WPDObject

childrenCollection Object

Service Object

Storage Object

WPD Automation Reference

WPDObject