AlpacaClientGetDeviceT(AlpacaConfiguration) Method
Creates and returns an instance of an Alpaca device of the specified type using the provided configuration
settings.
Namespace: ASCOM.Alpaca.ClientsAssembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
public static T GetDevice<T>(
AlpacaConfiguration configuration
)
where T : new(), AlpacaDeviceBaseClass
Public Shared Function GetDevice(Of T As {New, AlpacaDeviceBaseClass}) (
configuration As AlpacaConfiguration
) As T
- configuration AlpacaConfiguration
- The configuration settings used to initialize the Alpaca device. Cannot be null.
- T
- The type of Alpaca device to create. Must inherit from AlpacaDeviceBaseClass and have a parameterless constructor.
TAn instance of type T representing the configured Alpaca device.
This method uses the properties of the provided configuration to initialize the
device. The returned device is ready for use according to the specified settings.
Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10