get_service


Description:

public ServiceInfo? get_service (string type)

Get the service with type type directly contained in this as a new object implementing ServiceInfo, or null if no such device was found.

The returned object should be unreffed when done.

Note that services are not cached internally, so that every time you call this function a new object is created. The application must cache any used services if it wishes to keep them around and re-use them.

Parameters:

this

A DeviceInfo

type

The type of the service to be retrieved.

Returns:

A ServiceInfo.