C# 클래스 System.Xml.XmlAutoDetectWriter

This writer implements XmlOutputMethod.AutoDetect. If the first element is "html", then output will be directed to an Html writer. Otherwise, output will be directed to an Xml writer.
상속: XmlRawWriter, IRemovableWriter
파일 보기 프로젝트 열기: gbarnett/shared-source-cli-2.0 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateWrappedWriter void
EnsureWrappedWriter void
IsHtmlTag bool
StartElementContent void
TextBlockCreatesWriter bool
WriteEndElement void
WriteFullEndElement void
WriteNamespaceDeclaration void
WriteXmlDeclaration void
WriteXmlDeclaration void
XmlAutoDetectWriter System

공개 메소드들

메소드 설명
Close ( ) : void
Flush ( ) : void
WriteBase64 ( byte buffer, int index, int count ) : void
WriteBinHex ( byte buffer, int index, int count ) : void
WriteCData ( string text ) : void
WriteCharEntity ( char ch ) : void
WriteChars ( char buffer, int index, int count ) : void
WriteComment ( string text ) : void
WriteDocType ( string name, string pubid, string sysid, string subset ) : void
WriteEndAttribute ( ) : void
WriteEntityRef ( string name ) : void
WriteProcessingInstruction ( string name, string text ) : void
WriteRaw ( char buffer, int index, int count ) : void
WriteRaw ( string data ) : void
WriteStartAttribute ( string prefix, string localName, string ns ) : void
WriteStartElement ( string prefix, string localName, string ns ) : void
WriteString ( string text ) : void
WriteSurrogateCharEntity ( char lowChar, char highChar ) : void
WriteValue ( System.DateTime value ) : void
WriteValue ( bool value ) : void
WriteValue ( decimal value ) : void
WriteValue ( double value ) : void
WriteValue ( float value ) : void
WriteValue ( int value ) : void
WriteValue ( long value ) : void
WriteValue ( object value ) : void
WriteValue ( string value ) : void
WriteWhitespace ( string ws ) : void
XmlAutoDetectWriter ( Stream strm, Encoding encoding, XmlWriterSettings writerSettings ) : System
XmlAutoDetectWriter ( TextWriter textWriter, XmlWriterSettings writerSettings ) : System

비공개 메소드들

메소드 설명
CreateWrappedWriter ( XmlOutputMethod outMethod ) : void

Create either the Html or Xml writer and send any cached events to it.

EnsureWrappedWriter ( XmlOutputMethod outMethod ) : void

If a wrapped writer has not yet been created, create one.

IsHtmlTag ( string tagName ) : bool

Return true if "tagName" == "html" (case-insensitive).

StartElementContent ( ) : void
TextBlockCreatesWriter ( string textBlock ) : bool

If the specified text consist only of whitespace, then cache the whitespace, as it is not enough to force the creation of a wrapped writer. Otherwise, create a wrapped writer if one has not yet been created and return true.

WriteEndElement ( string prefix, string localName, string ns ) : void
WriteFullEndElement ( string prefix, string localName, string ns ) : void
WriteNamespaceDeclaration ( string prefix, string ns ) : void
WriteXmlDeclaration ( XmlStandalone standalone ) : void
WriteXmlDeclaration ( string xmldecl ) : void
XmlAutoDetectWriter ( XmlWriterSettings writerSettings, Encoding encoding ) : System

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

WriteBase64() 공개 메소드

public WriteBase64 ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
리턴 void

WriteBinHex() 공개 메소드

public WriteBinHex ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
리턴 void

WriteCData() 공개 메소드

public WriteCData ( string text ) : void
text string
리턴 void

WriteCharEntity() 공개 메소드

public WriteCharEntity ( char ch ) : void
ch char
리턴 void

WriteChars() 공개 메소드

public WriteChars ( char buffer, int index, int count ) : void
buffer char
index int
count int
리턴 void

WriteComment() 공개 메소드

public WriteComment ( string text ) : void
text string
리턴 void

WriteDocType() 공개 메소드

public WriteDocType ( string name, string pubid, string sysid, string subset ) : void
name string
pubid string
sysid string
subset string
리턴 void

WriteEndAttribute() 공개 메소드

public WriteEndAttribute ( ) : void
리턴 void

WriteEntityRef() 공개 메소드

public WriteEntityRef ( string name ) : void
name string
리턴 void

WriteProcessingInstruction() 공개 메소드

public WriteProcessingInstruction ( string name, string text ) : void
name string
text string
리턴 void

WriteRaw() 공개 메소드

public WriteRaw ( char buffer, int index, int count ) : void
buffer char
index int
count int
리턴 void

WriteRaw() 공개 메소드

public WriteRaw ( string data ) : void
data string
리턴 void

WriteStartAttribute() 공개 메소드

public WriteStartAttribute ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
리턴 void

WriteStartElement() 공개 메소드

public WriteStartElement ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
리턴 void

WriteString() 공개 메소드

public WriteString ( string text ) : void
text string
리턴 void

WriteSurrogateCharEntity() 공개 메소드

public WriteSurrogateCharEntity ( char lowChar, char highChar ) : void
lowChar char
highChar char
리턴 void

WriteValue() 공개 메소드

public WriteValue ( System.DateTime value ) : void
value System.DateTime
리턴 void

WriteValue() 공개 메소드

public WriteValue ( bool value ) : void
value bool
리턴 void

WriteValue() 공개 메소드

public WriteValue ( decimal value ) : void
value decimal
리턴 void

WriteValue() 공개 메소드

public WriteValue ( double value ) : void
value double
리턴 void

WriteValue() 공개 메소드

public WriteValue ( float value ) : void
value float
리턴 void

WriteValue() 공개 메소드

public WriteValue ( int value ) : void
value int
리턴 void

WriteValue() 공개 메소드

public WriteValue ( long value ) : void
value long
리턴 void

WriteValue() 공개 메소드

public WriteValue ( object value ) : void
value object
리턴 void

WriteValue() 공개 메소드

public WriteValue ( string value ) : void
value string
리턴 void

WriteWhitespace() 공개 메소드

public WriteWhitespace ( string ws ) : void
ws string
리턴 void

XmlAutoDetectWriter() 공개 메소드

public XmlAutoDetectWriter ( Stream strm, Encoding encoding, XmlWriterSettings writerSettings ) : System
strm Stream
encoding System.Text.Encoding
writerSettings XmlWriterSettings
리턴 System

XmlAutoDetectWriter() 공개 메소드

public XmlAutoDetectWriter ( TextWriter textWriter, XmlWriterSettings writerSettings ) : System
textWriter System.IO.TextWriter
writerSettings XmlWriterSettings
리턴 System