AlpacaDiscoveryGetAscomDevicesAsArrayList Method

Returns an ArrayList of discovered ASCOM devices, of the specified device type, for use by COM clients

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
C#
public ArrayList GetAscomDevicesAsArrayList(
	string deviceType
)

Parameters

deviceType  String
The device type for which to search e.g. Telescope, Focuser. An empty string will return devices of all types.

Return Value

ArrayList
ArrayList of AscomDeviceclasses

Remarks

This method is for use by COM clients because it is not possible to return a generic list, as used in GetAscomDevices(String), through a COM interface. .NET clients should use GetAscomDevices(String) instead of this method.

This method will return every discovered device, regardless of device type, if the supplied "deviceType" parameter is an empty string.

See Also