Service.Method method

The Method method invokes a service-defined method.

Syntax

retVal = Service.Method(
  Param1, ...
)

Parameters

Param1, ...

The parameters of the service-defined method.

Return value

The return value of the service-defined method.

Examples

The following JScript example demonstrates how to invoke a service-defined method.

var service = deviceObject.Services[servicePUID];

var results = service.someServiceDefinedMethod(param1, param2);
var myresult = results.someResultParameter;

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
Safeint_internal.h

See also

Service Object