다음을 통해 공유


StringWriter 멤버

정보를 문자열로 쓰기 위한 TextWriter를 구현합니다. 정보는 내부 StringBuilder에 저장됩니다.

다음 표에서는 StringWriter 형식에 의해 노출되는 멤버를 보여 줍니다.

Public 생성자

  이름 설명
Public method Supported by the .NET Compact Framework StringWriter 오버로드되었습니다. StringWriter 클래스의 새 인스턴스를 초기화합니다.

위쪽

Protected 필드

  이름 설명
Protected field Supported by the .NET Compact Framework CoreNewLine  해당 TextWriter에 사용한 줄 바꿈 문자를 저장합니다.(TextWriter에서 상속됨)

위쪽

Public 속성

  이름 설명
Public property Supported by the .NET Compact Framework Encoding 재정의되었습니다. 출력이 쓰여질 Encoding을 가져옵니다.
Public property Supported by the .NET Compact Framework FormatProvider  형식을 제어하는 개체를 가져옵니다.(TextWriter에서 상속됨)
Public property Supported by the .NET Compact Framework NewLine  현재 TextWriter에서 사용한 줄 종결자 문자열을 가져오거나 설정합니다.(TextWriter에서 상속됨)

위쪽

Public 메서드

( Protected 메서드 참조)

  이름 설명
Public method Supported by the .NET Compact Framework Close 재정의되었습니다. 현재 StringWriter 및 내부 스트림을 닫습니다.
Public method CreateObjRef  원격 개체와 통신하는 데 사용되는 프록시 생성에 필요한 모든 관련 정보가 들어 있는 개체를 만듭니다. (MarshalByRefObject에서 상속됨)
Public method Supported by the .NET Compact Framework Dispose 오버로드되었습니다.  
Public method Supported by the .NET Compact Framework Equals  오버로드되었습니다. 두 개의 Object 인스턴스가 같은지 여부를 확인합니다. (Object에서 상속됨)
Public method Supported by the .NET Compact Framework Flush  현재 작성기에 대한 모든 버퍼를 지우면 버퍼링된 모든 데이터가 내부 장치에 쓰여집니다. (TextWriter에서 상속됨)
Public method Supported by the .NET Compact Framework GetHashCode  특정 형식에 대한 해시 함수로 사용되며 GetHashCode는 해시 알고리즘 및 해시 테이블과 같은 데이터 구조에 사용하기 적당합니다. (Object에서 상속됨)
Public method GetLifetimeService  이 인스턴스의 수명 정책을 제어하는 현재의 수명 서비스 개체를 검색합니다. (MarshalByRefObject에서 상속됨)
Public method Supported by the .NET Compact Framework GetStringBuilder 내부 StringBuilder를 반환합니다.
Public method Supported by the .NET Compact Framework GetType  현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Public method InitializeLifetimeService  이 인스턴스의 수명 정책을 제어하기 위한 수명 서비스 개체를 가져옵니다. (MarshalByRefObject에서 상속됨)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  지정한 Object 인스턴스가 동일한지 여부를 확인합니다. (Object에서 상속됨)
Public method Static Supported by the .NET Compact Framework Synchronized  지정된 TextWriter 주위에 스레드로부터 안전한 래퍼를 만듭니다. (TextWriter에서 상속됨)
Public method Supported by the .NET Compact Framework ToString 재정의되었습니다. 현재 StringWriter에 지금까지 쓰여진 문자가 포함된 문자열을 반환합니다.
Public method Supported by the .NET Compact Framework Write 오버로드되었습니다. StringWriter의 이 인스턴스에 씁니다.
Public method Supported by the .NET Compact Framework WriteLine  오버로드되었습니다. 오버로드된 매개 변수에서 지정한 대로 일부 데이터와 줄 종결자를 차례로 씁니다. (TextWriter에서 상속됨)

위쪽

Protected 메서드

  이름 설명
Protected method Supported by the .NET Compact Framework Dispose 오버로드되었습니다. 재정의되었습니다.  
Protected method Supported by the .NET Compact Framework Finalize  가비지 수집기에서 Object를 회수하기 전에 Object가 리소스를 해제하고 다른 정리 작업을 수행할 수 있게 합니다. (Object에서 상속됨)
Protected method Supported by the .NET Compact Framework MemberwiseClone  오버로드되었습니다. ( MarshalByRefObject에서 상속됨)

위쪽

참고 항목

참조

StringWriter 클래스
System.IO 네임스페이스
StringBuilder
StringReader 클래스

기타 리소스

파일 및 스트림 I/O
방법: 파일의 텍스트 읽기
방법: 파일에 텍스트 쓰기