SerialPortReadStringUpToEndChars(CollectionString, String, Int32) Method |
Reads the serial port up to the first occurrence of one of the endChars sequences of the endCharsList collection.
It works only if AutoReceive property is false.
Namespace: ZylSoft.SerialAssembly: ZylSerialPort (in ZylSerialPort.dll) Version: 1.83.8519.34486
Syntax public string ReadStringUpToEndChars(
Collection<string> endCharsList,
out string partialResult,
int timeout = 60000
)
Public Function ReadStringUpToEndChars (
endCharsList As Collection(Of String),
<OutAttribute> ByRef partialResult As String,
Optional timeout As Integer = 60000
) As String
public:
String^ ReadStringUpToEndChars(
Collection<String^>^ endCharsList,
[OutAttribute] String^% partialResult,
int timeout = 60000
)
member ReadStringUpToEndChars :
endCharsList : Collection<string> *
partialResult : string byref *
?timeout : int
(* Defaults:
let _timeout = defaultArg timeout 60000
*)
-> string
public String ReadStringUpToEndChars(
Collection<String> endCharsList,
/** @attribute OutAttribute */ /** @ref */String partialResult,
int timeout = 60000
)
public function ReadStringUpToEndChars(
endCharsList : Collection<String>,
partialResult : String,
timeout : int
) : String
function ReadStringUpToEndChars(endCharsList, partialResult, timeout);
METHOD ReadStringUpToEndChars(
endCharsList AS Collection<STRING>,
partialResult OUT STRING,
timeout AS LONG := 60000
) AS STRING
No code example is currently available or this language may not be supported.
Parameters
- endCharsList CollectionString
-
Collection of terminator characters sequence.
- partialResult String
-
partialResult is empty string, if endChars sequence was found, otherwise contains the discarded data.
- timeout Int32 (Optional)
-
If the timeout (milliseconds) interval elapses and no endChars are found, the method will return with empty string (anti-blocking protection).
Default value: 60000.
Return Value
String
Returns the contents of the input buffer up to the first occurrence of a endChars sequence, but endChars are not included in the result.
See Also