OhioScreenWaitForStrRecvAsync Method |
Waits for text to be received from the host.
Namespace:
Flex.Hal.Ohio
Assembly:
Flex.Hal.Ohio (in Flex.Hal.Ohio.dll) Version: 4.1.4031.1525
Syntax public Task<bool> WaitForStrRecvAsync(
string text,
int msec,
CancellationToken canceltoken
)
Public Function WaitForStrRecvAsync (
text As String,
msec As Integer,
canceltoken As CancellationToken
) As Task(Of Boolean)
Parameters
- text
- Type: SystemString
Text to wait for. - msec
- Type: SystemInt32
The length of time to wait in milliseconds before a time-out occurs. - canceltoken
- Type: System.ThreadingCancellationToken
Token to cancel the wait.
Return Value
Type:
TaskBooleanTrue if text is received before a time out or cancellation; otherwise, false.
See Also