|
PortController.NET
DtrDsr Property
Enables/Disables DTR/DSR hardware handshaking.
Syntax
[Visual Basic]
object.DtrDsr [ = value ]
[C#]
object.DtrDsr [ = value ]
[C++]
object->DtrDsr [ = value ]
Parameters
object
An object expression that evaluates to a PortController object.
value
A boolean value representing the state of DTR/DSR handshaking.
Return Value
The boolean value true if DTR/DSR handshaking is on, false otherwise.
Default
False
Remarks
When DTR/DSR handshaking is enabled the DTR line fluctuates between on and off.
Reading the Dtr property returns the current value of the fluctuating DTR line.
Errors
None
Example
[Visual Basic]
'Set DTR/DSR
myPortController.DtrDsr = True
'Get DTR/DSR
Dim dtrdsr As Boolean
dtrdsr = myPortController.DtrDsr
[C#]
// Set DTR/DSR
myPortController.DtrDsr = true;
// Get DTR/DSR
Boolean bDtrDsr = myPortController.DtrDsr;
[C++]
// Set DTR/DSR
myPortController->DtrDsr = true;
// Get DTR/DSR
Boolean bDtrDsr = myPortController->DtrDsr;
See Also
RtsCts property | XonXoff property
|