ProfileGetValue(DeviceTypes, String, String, String) Method
Reads a value from the root of the device's registry Profile.
Namespace: ASCOM.ComAssembly: ASCOM.Com (in ASCOM.Com.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
public static string GetValue(
DeviceTypes deviceType,
string progId,
string valueName,
string defaultValue
)
Public Shared Function GetValue (
deviceType As DeviceTypes,
progId As String,
valueName As String,
defaultValue As String
) As String
- deviceType DeviceTypes
- Device type e.g. Telescope.
- progId String
- COM ProgID of the device.
- valueName String
- Name of this parameter.
- defaultValue String
- Default value to be returned if this parameter has not yet been set. The default value will also be written to the Profile.
StringString value of the specified parameter.
Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10