Transmits an arbitrary string to the device and waits for a string response. Optionally, protocol framing characters may be added to the string before transmission.

Namespace: ASCOM.DriverAccess
Assembly: ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public string CommandString(
	string Command,
	bool Raw
)
Visual Basic
Public Function CommandString ( _
	Command As String, _
	Raw As Boolean _
) As String
Visual C++
public:
virtual String^ CommandString(
	String^ Command, 
	bool Raw
) sealed

Parameters

Command
Type: System..::..String
The literal command string to be transmitted.
Raw
Type: System..::..Boolean
if set to true the string is transmitted 'as-is'. If set to false then protocol framing characters may be added prior to transmission.

Return Value

Returns the string response received from the device.

Remarks

Can throw a not implemented exception

Exceptions

ExceptionCondition
ASCOM..::..MethodNotImplementedExceptionIf the method is not implemented
ASCOM..::..NotConnectedExceptionIf the driver is not connected.
ASCOM..::..DriverExceptionMust throw an exception if the call was not successful

See Also