Service.ServiceProperty property

The ServiceProperty property gets or sets a service-defined property of this Service object.

This property is read/write.

Syntax

ServiceProperty = Service.ServiceProperty
Service.ServiceProperty = ServiceProperty

Property value

This property has the same value as the service-defined property that it is reading from or writing to.

Examples

The following JScript example demonstrates how to get and set a service-defined property.

var service = deviceObject.Services[ServicePUID];

// Retrieve a value from a service-defined property.
var someValue = service.someServiceProperty;

// Set the service-defined property to a new value.
service.someServiceProperty = newValue;

Requirements

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

See also

Service Object