AlpacaDiscoveryGetAscomDevices Method

Returns a generic list of discovered ASCOM devices of the specified device type.

Definition

Namespace: ASCOM.Alpaca.Discovery
Assembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public List<AscomDevice> GetAscomDevices(
	DeviceTypes? deviceType
)

Parameters

deviceType  NullableDeviceTypes
The device type for which to search e.g. Telescope, Focuser. Use to return devices of all types.

Return Value

ListAscomDevice
List of AscomDevice classes

Remarks

This method is only available to .NET clients because COM cannot handle generic types. COM clients should use GetAlpacaDevicesAsArrayList.

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

Version Information

.NET Standard

Supported in: 2.0

See Also