
- 332 -
WaitEvent
Sets or acquires the event to wait for.
■ Syntax
[VB]
Public Property WaitEvent As EN_EVENT
[C#]
public EN_EVENT WaitEvent {get; set;}
■ Property
Event to wait for
Parameter values
: As listed in EN_EVENT
Default value
: EN_EVENT.NONE
■ Exceptions
Name of Exception Meaning
ObjectDisposedException COM has not been opened yet.
ArgumentException The specified parameter value(s) lies outside the
permissible range.
■ Note
The parameter value will always be EN_EVENT.NONE while the port is closed.
[Ex.] Set the BHT to wait for a receive event.
[VB] MyComm.WaitEvent = CommSerial.EN_EVENT.RECEIVE
[C#] MyComm.WaitEvent = CommSerial.EN_EVENT.RECEIVE;
Comentários a estes Manuais