IndentedTextWriter 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
탭 문자열 토큰으로 새 줄을 들여쓰기할 수 있는 텍스트 작성기를 제공합니다.
public ref class IndentedTextWriter : System::IO::TextWriter
public class IndentedTextWriter : System.IO.TextWriter
type IndentedTextWriter = class
inherit TextWriter
Public Class IndentedTextWriter
Inherits TextWriter
- 상속
예제
다음 코드 예제에서는 사용 하 여 IndentedTextWriter 보여 줍니다는 들여쓰기의 다른 수준에서 텍스트를 작성 하는 합니다.
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
#using <System.dll>
using namespace System;
using namespace System::CodeDom;
using namespace System::CodeDom::Compiler;
using namespace System::ComponentModel;
using namespace System::IO;
using namespace System::Windows::Forms;
public ref class Form1: public System::Windows::Forms::Form
{
private:
System::Windows::Forms::TextBox^ textBox1;
String^ CreateMultilevelIndentString()
{
// Creates a TextWriter to use as the base output writer.
System::IO::StringWriter^ baseTextWriter = gcnew System::IO::StringWriter;
// Create an IndentedTextWriter and set the tab string to use
// as the indentation string for each indentation level.
System::CodeDom::Compiler::IndentedTextWriter^ indentWriter = gcnew IndentedTextWriter( baseTextWriter," " );
// Sets the indentation level.
indentWriter->Indent = 0;
// Output test strings at stepped indentations through a recursive loop method.
WriteLevel( indentWriter, 0, 5 );
// Return the resulting string from the base StringWriter.
return baseTextWriter->ToString();
}
void WriteLevel( IndentedTextWriter^ indentWriter, int level, int totalLevels )
{
// Output a test string with a new-line character at the end.
indentWriter->WriteLine( "This is a test phrase. Current indentation level: {0}", level );
// If not yet at the highest recursion level, call this output method for the next level of indentation.
if ( level < totalLevels )
{
// Increase the indentation count for the next level of indented output.
indentWriter->Indent++;
// Call the WriteLevel method to write test output for the next level of indentation.
WriteLevel( indentWriter, level + 1, totalLevels );
// Restores the indentation count for this level after the recursive branch method has returned.
indentWriter->Indent--;
}
else
// Outputs a string using the WriteLineNoTabs method.
indentWriter->WriteLineNoTabs( "This is a test phrase written with the IndentTextWriter.WriteLineNoTabs method." );
// Outputs a test string with a new-line character at the end.
indentWriter->WriteLine( "This is a test phrase. Current indentation level: {0}", level );
}
void button1_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ )
{
textBox1->Text = CreateMultilevelIndentString();
}
public:
Form1()
{
System::Windows::Forms::Button^ button1 = gcnew System::Windows::Forms::Button;
this->textBox1 = gcnew System::Windows::Forms::TextBox;
this->SuspendLayout();
this->textBox1->Anchor = (System::Windows::Forms::AnchorStyles)(System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left | System::Windows::Forms::AnchorStyles::Right);
this->textBox1->Location = System::Drawing::Point( 8, 40 );
this->textBox1->Multiline = true;
this->textBox1->Name = "textBox1";
this->textBox1->Size = System::Drawing::Size( 391, 242 );
this->textBox1->TabIndex = 0;
this->textBox1->Text = "";
button1->Location = System::Drawing::Point( 11, 8 );
button1->Name = "button1";
button1->Size = System::Drawing::Size( 229, 23 );
button1->TabIndex = 1;
button1->Text = "Generate string using IndentedTextWriter";
button1->Click += gcnew System::EventHandler( this, &Form1::button1_Click );
this->AutoScaleBaseSize = System::Drawing::Size( 5, 13 );
this->ClientSize = System::Drawing::Size( 407, 287 );
this->Controls->Add( button1 );
this->Controls->Add( this->textBox1 );
this->Name = "Form1";
this->Text = "IndentedTextWriter example";
this->ResumeLayout( false );
}
};
[STAThread]
int main()
{
Application::Run( gcnew Form1 );
}
using System;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.IO;
using System.Windows.Forms;
namespace IndentedTextWriterExample
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox textBox1;
private string CreateMultilevelIndentString()
{
// Creates a TextWriter to use as the base output writer.
System.IO.StringWriter baseTextWriter = new System.IO.StringWriter();
// Create an IndentedTextWriter and set the tab string to use
// as the indentation string for each indentation level.
System.CodeDom.Compiler.IndentedTextWriter indentWriter = new IndentedTextWriter(baseTextWriter, " ");
// Sets the indentation level.
indentWriter.Indent = 0;
// Output test strings at stepped indentations through a recursive loop method.
WriteLevel(indentWriter, 0, 5);
// Return the resulting string from the base StringWriter.
return baseTextWriter.ToString();
}
private void WriteLevel(IndentedTextWriter indentWriter, int level, int totalLevels)
{
// Output a test string with a new-line character at the end.
indentWriter.WriteLine("This is a test phrase. Current indentation level: "+level.ToString());
// If not yet at the highest recursion level, call this output method for the next level of indentation.
if( level < totalLevels )
{
// Increase the indentation count for the next level of indented output.
indentWriter.Indent++;
// Call the WriteLevel method to write test output for the next level of indentation.
WriteLevel(indentWriter, level+1, totalLevels);
// Restores the indentation count for this level after the recursive branch method has returned.
indentWriter.Indent--;
}
else
{
// Outputs a string using the WriteLineNoTabs method.
indentWriter.WriteLineNoTabs("This is a test phrase written with the IndentTextWriter.WriteLineNoTabs method.");
}
// Outputs a test string with a new-line character at the end.
indentWriter.WriteLine("This is a test phrase. Current indentation level: "+level.ToString());
}
private void button1_Click(object sender, System.EventArgs e)
{
textBox1.Text = CreateMultilevelIndentString();
}
public Form1()
{
System.Windows.Forms.Button button1 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.Location = new System.Drawing.Point(8, 40);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(391, 242);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "";
button1.Location = new System.Drawing.Point(11, 8);
button1.Name = "button1";
button1.Size = new System.Drawing.Size(229, 23);
button1.TabIndex = 1;
button1.Text = "Generate string using IndentedTextWriter";
button1.Click += new System.EventHandler(this.button1_Click);
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(407, 287);
this.Controls.Add(button1);
this.Controls.Add(this.textBox1);
this.Name = "Form1";
this.Text = "IndentedTextWriter example";
this.ResumeLayout(false);
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
}
}
Imports System.CodeDom
Imports System.CodeDom.Compiler
Imports System.ComponentModel
Imports System.IO
Imports System.Windows.Forms
Public Class Form1
Inherits System.Windows.Forms.Form
Private textBox1 As System.Windows.Forms.TextBox
Private Function CreateMultilevelIndentString() As String
' Create a TextWriter to use as the base output writer.
Dim baseTextWriter As New System.IO.StringWriter
' Create an IndentedTextWriter and set the tab string to use
' as the indentation string for each indentation level.
Dim indentWriter = New IndentedTextWriter(baseTextWriter, " ")
' Set the indentation level.
indentWriter.Indent = 0
' Output test strings at stepped indentations through a recursive loop method.
WriteLevel(indentWriter, 0, 5)
' Return the resulting string from the base StringWriter.
Return baseTextWriter.ToString()
End Function
Private Sub WriteLevel(ByVal indentWriter As IndentedTextWriter, ByVal level As Integer, ByVal totalLevels As Integer)
' Outputs a test string with a new-line character at the end.
indentWriter.WriteLine(("This is a test phrase. Current indentation level: " + level.ToString()))
' If not yet at the highest recursion level, call this output method for the next level of indentation.
If level < totalLevels Then
' Increase the indentation count for the next level of indented output.
indentWriter.Indent += 1
' Call the WriteLevel method to write test output for the next level of indentation.
WriteLevel(indentWriter, level + 1, totalLevels)
' Restores the indentation count for this level after the recursive branch method has returned.
indentWriter.Indent -= 1
Else
' Output a string using the WriteLineNoTabs method.
indentWriter.WriteLineNoTabs("This is a test phrase written with the IndentTextWriter.WriteLineNoTabs method.")
End If
' Outputs a test string with a new-line character at the end.
indentWriter.WriteLine(("This is a test phrase. Current indentation level: " + level.ToString()))
End Sub
Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
textBox1.Text = CreateMultilevelIndentString()
End Sub
Public Sub New()
Dim button1 As New System.Windows.Forms.Button
Me.textBox1 = New System.Windows.Forms.TextBox
Me.SuspendLayout()
Me.textBox1.Anchor = CType(System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left Or System.Windows.Forms.AnchorStyles.Right, System.Windows.Forms.AnchorStyles)
Me.textBox1.Location = New System.Drawing.Point(8, 40)
Me.textBox1.Multiline = True
Me.textBox1.Name = "textBox1"
Me.textBox1.Size = New System.Drawing.Size(391, 242)
Me.textBox1.TabIndex = 0
Me.textBox1.Text = ""
button1.Location = New System.Drawing.Point(11, 8)
button1.Name = "button1"
button1.Size = New System.Drawing.Size(229, 23)
button1.TabIndex = 1
button1.Text = "Generate string using IndentedTextWriter"
AddHandler button1.Click, AddressOf Me.button1_Click
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(407, 287)
Me.Controls.Add(button1)
Me.Controls.Add(Me.textBox1)
Me.Name = "Form1"
Me.Text = "IndentedTextWriter example"
Me.ResumeLayout(False)
End Sub
<STAThread()> _
Shared Sub Main()
Application.Run(New Form1)
End Sub
End Class
설명
IndentedTextWriter 는 TextWriter 탭 문자열을 삽입하고 현재 들여쓰기 수준을 추적하는 메서드를 제공하여 를 확장합니다. 여러 들여쓰기 수준으로 서식이 지정된 텍스트는 생성된 코드에 유용하므로 이 클래스는 CodeDOM 코드 생성기 구현에서 사용됩니다.
탭 문자열은 각 들여쓰기로 구성된 문자열입니다. 일반적으로 탭 문자열에는 공백이 포함됩니다.
참고
이 클래스에는 모든 멤버에 적용되는 클래스 수준에서 링크 요청 및 상속 요청이 포함됩니다. 직접 SecurityException 호출자 또는 파생 클래스에 완전 신뢰 권한이 없는 경우 이 throw됩니다. 보안 요청에 대 한 자세한 내용은 참조 하세요 링크 요청 하 고 상속 요청합니다.
생성자
IndentedTextWriter(TextWriter) |
지정된 텍스트 작성기 및 기본 탭 문자열을 사용하여 IndentedTextWriter 클래스의 새 인스턴스를 초기화합니다. |
IndentedTextWriter(TextWriter, String) |
지정된 텍스트 작성기 및 기본 탭 문자열을 사용하여 IndentedTextWriter 클래스의 새 인스턴스를 초기화합니다. |
필드
CoreNewLine |
이 |
DefaultTabString |
기본 탭 문자열을 지정합니다. 이 필드는 상수입니다. |
속성
Encoding |
텍스트 작성기에서 사용할 인코딩을 가져옵니다. |
FormatProvider |
서식 지정을 제어하는 개체를 가져옵니다. (다음에서 상속됨 TextWriter) |
Indent |
들여쓸 공백의 수를 가져오거나 설정합니다. |
InnerWriter |
사용할 TextWriter입니다. |
NewLine |
사용할 줄 바꿈 문자를 가져오거나 설정합니다. |
메서드
Close() |
작성 중인 문서를 닫습니다. |
CreateObjRef(Type) |
원격 개체와 통신하는 데 사용되는 프록시 생성에 필요한 모든 관련 정보가 들어 있는 개체를 만듭니다. (다음에서 상속됨 MarshalByRefObject) |
Dispose() |
해당 TextWriter 개체에서 사용하는 리소스를 모두 해제합니다. (다음에서 상속됨 TextWriter) |
Dispose(Boolean) |
TextWriter에서 사용하는 관리되지 않는 리소스를 해제하고, 관리되는 리소스를 선택적으로 해제할 수 있습니다. (다음에서 상속됨 TextWriter) |
DisposeAsync() |
비동기적으로 관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다. |
DisposeAsync() |
TextWriter 개체에서 사용하는 리소스를 동기식으로 모두 해제합니다. (다음에서 상속됨 TextWriter) |
Equals(Object) |
지정된 개체가 현재 개체와 같은지 확인합니다. (다음에서 상속됨 Object) |
Flush() |
스트림을 플러시합니다. |
FlushAsync() |
이 IndentedTextWriter 에 대한 모든 버퍼를 비동기적으로 지우고 버퍼링된 데이터가 기본 디바이스에 기록되도록 합니다. |
FlushAsync() |
현재 작성기에 대한 모든 버퍼를 비동기적으로 지우면 버퍼링된 모든 데이터를 내부 디바이스에 씁니다. (다음에서 상속됨 TextWriter) |
FlushAsync(CancellationToken) |
이 IndentedTextWriter 에 대한 모든 버퍼를 비동기적으로 지우고 버퍼링된 데이터가 기본 디바이스에 기록되도록 합니다. |
FlushAsync(CancellationToken) |
현재 작성기에 대한 모든 버퍼를 비동기적으로 지우면 버퍼링된 모든 데이터를 내부 디바이스에 씁니다. (다음에서 상속됨 TextWriter) |
GetHashCode() |
기본 해시 함수로 작동합니다. (다음에서 상속됨 Object) |
GetLifetimeService() |
사용되지 않음.
이 인스턴스의 수명 정책을 제어하는 현재의 수명 서비스 개체를 검색합니다. (다음에서 상속됨 MarshalByRefObject) |
GetType() |
현재 인스턴스의 Type을 가져옵니다. (다음에서 상속됨 Object) |
InitializeLifetimeService() |
사용되지 않음.
이 인스턴스의 수명 정책을 제어하는 수명 서비스 개체를 가져옵니다. (다음에서 상속됨 MarshalByRefObject) |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다. (다음에서 상속됨 Object) |
MemberwiseClone(Boolean) |
현재 MarshalByRefObject 개체의 단순 복사본을 만듭니다. (다음에서 상속됨 MarshalByRefObject) |
OutputTabs() |
Indent 속성에 따라 각 들여쓰기 수준마다 탭 문자열을 출력합니다. |
OutputTabsAsync() |
현재 Indent에 따라 탭을 기본 TextWriter 으로 비동기적으로 출력합니다. |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다. (다음에서 상속됨 Object) |
Write(Boolean) |
텍스트 스트림에 Boolean 값의 텍스트 표현을 씁니다. |
Write(Char) |
텍스트 스트림에 문자를 씁니다. |
Write(Char[]) |
텍스트 스트림에 문자 배열을 씁니다. |
Write(Char[], Int32, Int32) |
텍스트 스트림에 문자의 하위 배열을 씁니다. |
Write(Decimal) |
10진수 값의 텍스트 표현을 텍스트 스트림에 씁니다. (다음에서 상속됨 TextWriter) |
Write(Double) |
Double 값의 텍스트 표현을 텍스트 스트림에 씁니다. |
Write(Int32) |
텍스트 스트림에 정수의 텍스트 표현을 씁니다. |
Write(Int64) |
텍스트 스트림에 8바이트 정수의 텍스트 표현을 씁니다. |
Write(Object) |
텍스트 스트림에 개체의 텍스트 표현을 씁니다. |
Write(ReadOnlySpan<Char>) |
텍스트 스트림에 문자 범위를 씁니다. (다음에서 상속됨 TextWriter) |
Write(Single) |
Single 값의 텍스트 표현을 텍스트 스트림에 씁니다. |
Write(String) |
텍스트 스트림에 지정된 문자열을 씁니다. |
Write(String, Object) |
지정된 것과 같은 의미론을 사용하여 서식이 지정된 문자열을 출력합니다. |
Write(String, Object, Object) |
지정된 것과 같은 의미론을 사용하여 서식이 지정된 문자열을 출력합니다. |
Write(String, Object, Object, Object) |
Format(String, Object, Object, Object) 메서드와 동일한 의미 체계를 사용하여 서식이 지정된 문자열을 텍스트 스트림에 씁니다. (다음에서 상속됨 TextWriter) |
Write(String, Object[]) |
지정된 것과 같은 의미론을 사용하여 서식이 지정된 문자열을 출력합니다. |
Write(String, ReadOnlySpan<Object>) |
탭 문자열 토큰으로 새 줄을 들여쓰기할 수 있는 텍스트 작성기를 제공합니다. |
Write(String, ReadOnlySpan<Object>) |
탭 문자열 토큰으로 새 줄을 들여쓰기할 수 있는 텍스트 작성기를 제공합니다. (다음에서 상속됨 TextWriter) |
Write(StringBuilder) |
텍스트 스트림에 문자열 작성기를 씁니다. (다음에서 상속됨 TextWriter) |
Write(UInt32) |
부호 없는 4바이트 정수의 텍스트 표현을 텍스트 스트림에 씁니다. (다음에서 상속됨 TextWriter) |
Write(UInt64) |
부호 없는 8바이트 정수의 텍스트 표현을 텍스트 스트림에 씁니다. (다음에서 상속됨 TextWriter) |
WriteAsync(Char) |
모든 줄의 시작 부분에 탭을 삽입하는 기본 TextWriter에 지정된 Char 를 비동기적으로 씁니다. |
WriteAsync(Char) |
문자를 텍스트 스트림에 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteAsync(Char[]) |
문자 배열을 텍스트 스트림에 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteAsync(Char[], Int32, Int32) |
지정된 버퍼TextWriter의 지정된 수를 Char기본 에 비동기적으로 쓰고, 지정된 인덱스에서 시작하여 모든 새 줄의 시작 부분에 탭을 출력합니다. |
WriteAsync(Char[], Int32, Int32) |
문자의 하위 배열을 텍스트 스트림에 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteAsync(ReadOnlyMemory<Char>, CancellationToken) |
모든 줄의 시작 부분에 탭을 삽입하는 기본 TextWriter에 지정된 문자를 비동기적으로 씁니다. |
WriteAsync(ReadOnlyMemory<Char>, CancellationToken) |
문자 메모리 영역을 텍스트 스트림에 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteAsync(String) |
모든 줄의 시작 부분에 탭을 삽입하는 기본 TextWriter에 지정된 문자열을 비동기적으로 씁니다. |
WriteAsync(String) |
문자열을 텍스트 스트림에 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteAsync(StringBuilder, CancellationToken) |
모든 줄의 시작 부분에 탭을 삽입하는 기본 TextWriter에 지정된 StringBuilder 의 내용을 비동기적으로 씁니다. |
WriteAsync(StringBuilder, CancellationToken) |
텍스트 스트림에 문자열 작성기를 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteLine() |
줄 종결자를 씁니다. |
WriteLine(Boolean) |
텍스트 스트림에 줄 종결자가 다음에 오도록 Boolean 값의 텍스트 표현을 씁니다. |
WriteLine(Char) |
텍스트 스트림에 줄 종결자가 다음에 오도록 문자를 씁니다. |
WriteLine(Char[]) |
텍스트 스트림에 줄 종결자가 다음에 오도록 문자 배열을 씁니다. |
WriteLine(Char[], Int32, Int32) |
텍스트 스트림에 줄 종결자가 다음에 오도록 문자의 하위 배열을 씁니다. |
WriteLine(Decimal) |
10진수 값의 텍스트 표현과 줄 종결자를 차례로 텍스트 스트림에 씁니다. (다음에서 상속됨 TextWriter) |
WriteLine(Double) |
텍스트 스트림에 줄 종결자가 다음에 오도록 Double의 텍스트 표현을 씁니다. |
WriteLine(Int32) |
텍스트 스트림에 줄 종결자가 다음에 오도록 정수의 텍스트 표현을 씁니다. |
WriteLine(Int64) |
텍스트 스트림에 줄 종결자가 다음에 오도록 8바이트 정수의 텍스트 표현을 씁니다. |
WriteLine(Object) |
텍스트 스트림에 줄 종결자가 다음에 오도록 개체의 텍스트 표현을 씁니다. |
WriteLine(ReadOnlySpan<Char>) |
텍스트 스트림에 줄 종결자가 다음에 오도록 문자 범위의 텍스트 표현을 씁니다. (다음에서 상속됨 TextWriter) |
WriteLine(Single) |
텍스트 스트림에 줄 종결자가 다음에 오도록 Single 값의 텍스트 표현을 씁니다. |
WriteLine(String) |
텍스트 스트림에 줄 종결자가 다음에 오도록 지정된 문자열을 씁니다. |
WriteLine(String, Object) |
지정된 것과 같은 의미론을 사용하여 서식이 지정된 문자열을 줄 종결자가 다음에 오도록 씁니다. |
WriteLine(String, Object, Object) |
지정된 것과 같은 의미론을 사용하여 서식이 지정된 문자열을 줄 종결자가 다음에 오도록 씁니다. |
WriteLine(String, Object, Object, Object) |
Format(String, Object)와 동일한 의미 체계를 사용하여 서식이 지정된 문자열과 새 줄을 텍스트 스트림에 씁니다. (다음에서 상속됨 TextWriter) |
WriteLine(String, Object[]) |
지정된 것과 같은 의미론을 사용하여 서식이 지정된 문자열을 줄 종결자가 다음에 오도록 씁니다. |
WriteLine(String, ReadOnlySpan<Object>) |
탭 문자열 토큰으로 새 줄을 들여쓰기할 수 있는 텍스트 작성기를 제공합니다. |
WriteLine(String, ReadOnlySpan<Object>) |
탭 문자열 토큰으로 새 줄을 들여쓰기할 수 있는 텍스트 작성기를 제공합니다. (다음에서 상속됨 TextWriter) |
WriteLine(StringBuilder) |
문자열 빌더의 텍스트 표현과 줄 종결자를 차례로 텍스트 스트림에 씁니다. (다음에서 상속됨 TextWriter) |
WriteLine(UInt32) |
텍스트 스트림에 줄 종결자가 다음에 오도록 UInt32의 텍스트 표현을 씁니다. |
WriteLine(UInt64) |
부호 없는 8바이트 정수의 텍스트 표현과 줄 종결자를 차례로 텍스트 스트림에 씁니다. (다음에서 상속됨 TextWriter) |
WriteLineAsync() |
줄 종결자를 기본 TextWriter에 비동기적으로 씁니다. |
WriteLineAsync() |
줄 종결자를 텍스트 스트림에 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteLineAsync(Char) |
지정된 Char 를 기본 TextWriter 에 비동기적으로 쓴 다음 줄 종결자를 써서 모든 줄의 시작 부분에 탭을 삽입합니다. |
WriteLineAsync(Char) |
텍스트 스트림에 줄 종결자가 다음에 오도록 비동기식으로 문자를 씁니다. (다음에서 상속됨 TextWriter) |
WriteLineAsync(Char[]) |
문자의 배열과 줄 종결자를 차례로 텍스트 스트림에 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteLineAsync(Char[], Int32, Int32) |
지정된 버퍼에서 지정된 수의 문자와 줄 종결자를 차례로 기본 TextWriter에 비동기적으로 씁니다. 이때 버퍼 내의 지정된 인덱스에서 시작하여 모든 줄의 시작 부분에 탭을 삽입합니다. |
WriteLineAsync(Char[], Int32, Int32) |
문자의 하위 배열과 줄 종결자를 차례로 텍스트 스트림에 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken) |
지정된 문자와 줄 종결자를 기본 TextWriter에 비동기적으로 쓰고 모든 줄의 시작 부분에 탭을 삽입합니다. |
WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken) |
텍스트 스트림에 줄 종결자가 다음에 오도록 문자 메모리 범위의 텍스트 표현을 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteLineAsync(String) |
지정된 문자열과 줄 종결자를 TextWriter기본 에 비동기적으로 쓰고 모든 줄의 시작 부분에 탭을 삽입합니다. |
WriteLineAsync(String) |
문자열과 줄 종결자를 차례로 텍스트 스트림에 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteLineAsync(StringBuilder, CancellationToken) |
지정된 StringBuilder 의 내용과 줄 종결자를 기본 TextWriter에 비동기적으로 쓰고 모든 줄의 시작 부분에 탭을 삽입합니다. |
WriteLineAsync(StringBuilder, CancellationToken) |
문자열 빌더의 텍스트 표현과 줄 종결자를 차례로 텍스트 스트림에 비동기식으로 씁니다. (다음에서 상속됨 TextWriter) |
WriteLineNoTabs(String) |
탭 없는 줄에 지정된 문자열을 씁니다. |
WriteLineNoTabsAsync(String) |
탭을 삽입하지 않고 지정된 문자열을 TextWriter 기본 문자열에 비동기적으로 씁니다. |
명시적 인터페이스 구현
IDisposable.Dispose() |
이 멤버에 대한 설명은 Dispose()를 참조하세요. (다음에서 상속됨 TextWriter) |
확장 메서드
ConfigureAwait(IAsyncDisposable, Boolean) |
비동기 일회용에서 반환되는 작업을 대기하는 방법을 구성합니다. |
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기