XmlTextWriter 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
XmlTextWriter 클래스의 인스턴스를 만듭니다.
오버로드
| Name | Description |
|---|---|
| XmlTextWriter(TextWriter) |
지정된 을 |
| XmlTextWriter(Stream, Encoding) |
지정된 스트림 및 인코딩을 사용하여 클래스의 |
| XmlTextWriter(String, Encoding) |
지정된 파일을 사용하여 클래스의 XmlTextWriter 인스턴스를 만듭니다. |
설명
메모
새로운 기능을 활용하기 위해 XmlWriter 인스턴스를 XmlWriter.Create 메서드를 사용하고 XmlWriterSettings 클래스를 활용하여 만드는 것을 권장합니다.
XmlTextWriter(TextWriter)
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
지정된 을 XmlTextWriter 사용하여 클래스의 인스턴스를 TextWriter만듭니다.
public:
XmlTextWriter(System::IO::TextWriter ^ w);
public XmlTextWriter(System.IO.TextWriter w);
new System.Xml.XmlTextWriter : System.IO.TextWriter -> System.Xml.XmlTextWriter
Public Sub New (w As TextWriter)
매개 변수
TextWriter 쓸 것입니다. 이미 올바른 인코딩으로 설정되어 있다고 가정 TextWriter 합니다.
설명
메모
새로운 기능을 활용하기 위해 XmlWriter 인스턴스를 XmlWriter.Create 메서드를 사용하고 XmlWriterSettings 클래스를 활용하여 만드는 것을 권장합니다.
적용 대상
XmlTextWriter(Stream, Encoding)
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
지정된 스트림 및 인코딩을 사용하여 클래스의 XmlTextWriter 인스턴스를 만듭니다.
public:
XmlTextWriter(System::IO::Stream ^ w, System::Text::Encoding ^ encoding);
public XmlTextWriter(System.IO.Stream w, System.Text.Encoding? encoding);
public XmlTextWriter(System.IO.Stream w, System.Text.Encoding encoding);
new System.Xml.XmlTextWriter : System.IO.Stream * System.Text.Encoding -> System.Xml.XmlTextWriter
Public Sub New (w As Stream, encoding As Encoding)
매개 변수
- w
- Stream
작성할 스트림입니다.
- encoding
- Encoding
생성할 인코딩입니다. 인코딩이 null 면 스트림을 UTF-8로 쓰고 인코딩 특성을 ProcessingInstruction생략합니다.
예외
인코딩이 지원되지 않거나 스트림을 쓸 수 없습니다.
w은 null입니다.
설명
메모
새로운 기능을 활용하기 위해 XmlWriter 인스턴스를 XmlWriter.Create 메서드를 사용하고 XmlWriterSettings 클래스를 활용하여 만드는 것을 권장합니다.
적용 대상
XmlTextWriter(String, Encoding)
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
- Source:
- XmlTextWriter.cs
지정된 파일을 사용하여 클래스의 XmlTextWriter 인스턴스를 만듭니다.
public:
XmlTextWriter(System::String ^ filename, System::Text::Encoding ^ encoding);
public XmlTextWriter(string filename, System.Text.Encoding? encoding);
public XmlTextWriter(string filename, System.Text.Encoding encoding);
new System.Xml.XmlTextWriter : string * System.Text.Encoding -> System.Xml.XmlTextWriter
Public Sub New (filename As String, encoding As Encoding)
매개 변수
- filename
- String
쓸 파일 이름입니다. 파일이 있는 경우 파일이 잘리고 새 콘텐츠로 덮어씁니다.
- encoding
- Encoding
생성할 인코딩입니다. 인코딩이 null 면 파일을 UTF-8로 쓰고 인코딩 특성을 ProcessingInstruction생략합니다.
예외
인코딩은 지원되지 않습니다. 파일 이름이 비어 있거나, 공백만 포함하거나, 하나 이상의 잘못된 문자를 포함합니다.
액세스가 거부되었습니다.
파일 이름은 입니다 null.
쓸 디렉터리를 찾을 수 없습니다.
파일 이름에는 파일 이름, 디렉터리 이름 또는 볼륨 레이블 구문에 대한 잘못되거나 잘못된 구문이 포함됩니다.
호출자에게 필요한 권한이 없습니다.
설명
메모
새로운 기능을 활용하기 위해 XmlWriter 인스턴스를 XmlWriter.Create 메서드를 사용하고 XmlWriterSettings 클래스를 활용하여 만드는 것을 권장합니다.