TextWriter 생성자

정의

TextWriter 클래스의 새 인스턴스를 초기화합니다.

오버로드

TextWriter()

TextWriter 클래스의 새 인스턴스를 초기화합니다.

TextWriter(IFormatProvider)

지정된 서식 공급자를 사용하여 TextWriter 클래스의 새 인스턴스를 초기화합니다.

TextWriter()

Source:
TextWriter.cs
Source:
TextWriter.cs
Source:
TextWriter.cs

TextWriter 클래스의 새 인스턴스를 초기화합니다.

protected:
 TextWriter();
protected TextWriter ();
Protected Sub New ()

설명

속성에 대한 값을 제공하지 않으려면 이 생성자 오버로드를 FormatProvider 사용합니다. 속성이 이 FormatProvidernull현재 스레드의 문화권이 서식 지정에 사용됩니다.

파생 클래스에 이 생성자를 사용합니다.

일반적인 I/O 작업 목록은 일반적인 I/O 작업을 참조하세요.

추가 정보

적용 대상

TextWriter(IFormatProvider)

Source:
TextWriter.cs
Source:
TextWriter.cs
Source:
TextWriter.cs

지정된 서식 공급자를 사용하여 TextWriter 클래스의 새 인스턴스를 초기화합니다.

protected:
 TextWriter(IFormatProvider ^ formatProvider);
protected TextWriter (IFormatProvider formatProvider);
protected TextWriter (IFormatProvider? formatProvider);
new System.IO.TextWriter : IFormatProvider -> System.IO.TextWriter
Protected Sub New (formatProvider As IFormatProvider)

매개 변수

formatProvider
IFormatProvider

서식 지정을 제어하는 IFormatProvider 개체입니다.

설명

속성에 대한 값을 제공하려면 이 생성자 오버로드를 FormatProvider 사용합니다. 속성 값 FormatProvider 은 및 WriteLine 메서드를 호출할 때 사용되는 문화권별 서식을 Write 지정합니다. 형식 공급자를 제공하지 않으려면 속성을 로 설정하는 생성자를 사용하여 TextWriter() 인스턴스를 FormatProvidernull만듭니다. 속성이 이 FormatProvidernull현재 스레드의 문화권이 서식 지정에 사용됩니다.

일반적인 I/O 작업 목록은 일반적인 I/O 작업을 참조하세요.

추가 정보

적용 대상