SerialPort.BytesToRead 속성

정의

수신 버퍼에 있는 데이터의 바이트 수를 가져옵니다.

public:
 property int BytesToRead { int get(); };
public int BytesToRead { get; }
[System.ComponentModel.Browsable(false)]
public int BytesToRead { get; }
member this.BytesToRead : int
[<System.ComponentModel.Browsable(false)>]
member this.BytesToRead : int
Public ReadOnly Property BytesToRead As Integer

속성 값

수신 버퍼에 있는 데이터의 바이트 수입니다.

특성

예외

포트가 열려 있지 않습니다.

설명

수신 버퍼에는 직렬 드라이버의 수신 버퍼와 개체 자체의 내부 버퍼링이 SerialPort 포함됩니다.

속성은 BytesToRead 버퍼와 Windows에서 만든 버퍼를 모두 SerialPort 나타내므로 Windows에서 만든 버퍼만 나타내는 속성보다 ReadBufferSize 더 큰 값을 반환할 수 있습니다.

적용 대상