StringWriter 멤버
정보를 문자열로 쓰기 위한 TextWriter를 구현합니다. 정보는 내부 StringBuilder에 저장됩니다.
다음 표에서는 StringWriter 형식에 의해 노출되는 멤버를 보여 줍니다.
Public 생성자
이름 | 설명 | |
---|---|---|
StringWriter | 오버로드되었습니다. StringWriter 클래스의 새 인스턴스를 초기화합니다. |
위쪽
Protected 필드
이름 | 설명 | |
---|---|---|
CoreNewLine | 해당 TextWriter에 사용한 줄 바꿈 문자를 저장합니다.(TextWriter에서 상속됨) |
위쪽
Public 속성
이름 | 설명 | |
---|---|---|
Encoding | 재정의되었습니다. 출력이 쓰여질 Encoding을 가져옵니다. | |
FormatProvider | 형식을 제어하는 개체를 가져옵니다.(TextWriter에서 상속됨) | |
NewLine | 현재 TextWriter에서 사용한 줄 종결자 문자열을 가져오거나 설정합니다.(TextWriter에서 상속됨) |
위쪽
Public 메서드
( Protected 메서드 참조)
이름 | 설명 | |
---|---|---|
Close | 재정의되었습니다. 현재 StringWriter 및 내부 스트림을 닫습니다. | |
CreateObjRef | 원격 개체와 통신하는 데 사용되는 프록시 생성에 필요한 모든 관련 정보가 들어 있는 개체를 만듭니다. (MarshalByRefObject에서 상속됨) | |
Dispose | 오버로드되었습니다. | |
Equals | 오버로드되었습니다. 두 개의 Object 인스턴스가 같은지 여부를 확인합니다. (Object에서 상속됨) | |
Flush | 현재 작성기에 대한 모든 버퍼를 지우면 버퍼링된 모든 데이터가 내부 장치에 쓰여집니다. (TextWriter에서 상속됨) | |
GetHashCode | 특정 형식에 대한 해시 함수로 사용되며 GetHashCode는 해시 알고리즘 및 해시 테이블과 같은 데이터 구조에 사용하기 적당합니다. (Object에서 상속됨) | |
GetLifetimeService | 이 인스턴스의 수명 정책을 제어하는 현재의 수명 서비스 개체를 검색합니다. (MarshalByRefObject에서 상속됨) | |
GetStringBuilder | 내부 StringBuilder를 반환합니다. | |
GetType | 현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨) | |
InitializeLifetimeService | 이 인스턴스의 수명 정책을 제어하기 위한 수명 서비스 개체를 가져옵니다. (MarshalByRefObject에서 상속됨) | |
ReferenceEquals | 지정한 Object 인스턴스가 동일한지 여부를 확인합니다. (Object에서 상속됨) | |
Synchronized | 지정된 TextWriter 주위에 스레드로부터 안전한 래퍼를 만듭니다. (TextWriter에서 상속됨) | |
ToString | 재정의되었습니다. 현재 StringWriter에 지금까지 쓰여진 문자가 포함된 문자열을 반환합니다. | |
Write | 오버로드되었습니다. StringWriter의 이 인스턴스에 씁니다. | |
WriteLine | 오버로드되었습니다. 오버로드된 매개 변수에서 지정한 대로 일부 데이터와 줄 종결자를 차례로 씁니다. (TextWriter에서 상속됨) |
위쪽
Protected 메서드
이름 | 설명 | |
---|---|---|
Dispose | 오버로드되었습니다. 재정의되었습니다. | |
Finalize | 가비지 수집기에서 Object를 회수하기 전에 Object가 리소스를 해제하고 다른 정리 작업을 수행할 수 있게 합니다. (Object에서 상속됨) | |
MemberwiseClone | 오버로드되었습니다. ( MarshalByRefObject에서 상속됨) |
위쪽
참고 항목
참조
StringWriter 클래스
System.IO 네임스페이스
StringBuilder
StringReader 클래스