Denso BHT-200QW Dokumentacja Strona 336

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 377
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 335
- 334 -
InBufferCount
Acquires the size of meaningful data in the receive buffer (in buffer).
Syntax
[VB]
Public Property ReadOnly InBufferCount As Integer
[C#]
public int InBufferCount {get}
Property
Size of meaningful data in the receive buffer (in buffer) (bytes)
Exceptions
Name of Exception Meaning
ObjectDisposedException The COM port has not been opened yet.
Note
Each time a piece of data is read from the receive buffer using the Input method, the size of
meaningful data in the receive buffer decreases by the amount of the data just read out.
If the port is closed by specifying "false" for the PortOpen property, the size of meaningful
data is reset to “0”.
[Ex.] Read out all data remaining in the receive buffer.
[VB]
While MyComm.InBufferCount > 0
len = MyComm.Input(buffer, 0, buffer.Length)
End While
[C#]
while (MyComm.InBufferCount > 0)
{
len = MyComm.Input(buffer, 0, buffer.Length);
}
Przeglądanie stron 335
1 2 ... 331 332 333 334 335 336 337 338 339 340 341 ... 376 377

Komentarze do niniejszej Instrukcji

Brak uwag