SerialPort.NewLine 속성

정의

ReadLine()WriteLine(String) 메서드의 호출 끝을 해석하는 데 사용되는 값을 가져오거나 설정합니다.

public:
 property System::String ^ NewLine { System::String ^ get(); void set(System::String ^ value); };
public string NewLine { get; set; }
[System.ComponentModel.Browsable(false)]
public string NewLine { get; set; }
member this.NewLine : string with get, set
[<System.ComponentModel.Browsable(false)>]
member this.NewLine : string with get, set
Public Property NewLine As String

속성 값

줄 끝을 나타내는 값입니다. 기본값은 줄 바꿈(C# 또는 vbLf Visual Basic의 경우 "\n")입니다.

특성

예외

속성 값이 비어 있는 경우

속성 값이 null인 경우

설명

이 속성은 및 WriteLine 메서드의 줄 끝을 정의하는 값(바이트)을 ReadLine 결정합니다. 기본적으로 줄 끝 값은 줄 바꿈 문자(\n C#, Constants.vbLf Visual Basic의 경우)입니다. 작업할 때 특정 직렬 디바이스 같은 목적을 위해 다른 값을 사용 하는 경우 다른 값으로이 변경할 수 있습니다.

적용 대상