C# Class System.Xml.XmlEventCache

Caches sequence of XmlEvents so that they can be replayed later.
Inheritance: XmlRawWriter
Afficher le fichier Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Méthodes publiques

Méthode Description
Close ( ) : void
EndEvents ( ) : void
EventsToString ( ) : string

Concatenate all element text and atomic value events and return the resulting string.

EventsToWriter ( XmlWriter writer ) : void

Replay all cached events to an XmlWriter.

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 ( object value ) : void

All other WriteValue methods are implemented by XmlWriter to delegate to WriteValue(object) or WriteValue(string), so only these two methods need to be implemented.

WriteValue ( string value ) : void
WriteWhitespace ( string ws ) : void
XmlEventCache ( string baseUri, bool hasRootNode ) : System

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
AddEvent ( XmlEventType eventType ) : void
AddEvent ( XmlEventType eventType, object o ) : void
AddEvent ( XmlEventType eventType, string s1 ) : void
AddEvent ( XmlEventType eventType, string s1, string s2 ) : void
AddEvent ( XmlEventType eventType, string s1, string s2, string s3 ) : void
AddEvent ( XmlEventType eventType, string s1, string s2, string s3, object o ) : void
NewEvent ( ) : int
StartElementContent ( ) : void
ToBytes ( byte buffer, int index, int count ) : byte[]

Create a standalone buffer that doesn't need an index or count passed along with it.

WriteEndBase64 ( ) : void
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

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndEvents() public méthode

public EndEvents ( ) : void
Résultat void

EventsToString() public méthode

Concatenate all element text and atomic value events and return the resulting string.
public EventsToString ( ) : string
Résultat string

EventsToWriter() public méthode

Replay all cached events to an XmlWriter.
public EventsToWriter ( XmlWriter writer ) : void
writer XmlWriter
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

WriteBase64() public méthode

public WriteBase64 ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
Résultat void

WriteBinHex() public méthode

public WriteBinHex ( byte buffer, int index, int count ) : void
buffer byte
index int
count int
Résultat void

WriteCData() public méthode

public WriteCData ( string text ) : void
text string
Résultat void

WriteCharEntity() public méthode

public WriteCharEntity ( char ch ) : void
ch char
Résultat void

WriteChars() public méthode

public WriteChars ( char buffer, int index, int count ) : void
buffer char
index int
count int
Résultat void

WriteComment() public méthode

public WriteComment ( string text ) : void
text string
Résultat void

WriteDocType() public méthode

public WriteDocType ( string name, string pubid, string sysid, string subset ) : void
name string
pubid string
sysid string
subset string
Résultat void

WriteEndAttribute() public méthode

public WriteEndAttribute ( ) : void
Résultat void

WriteEntityRef() public méthode

public WriteEntityRef ( string name ) : void
name string
Résultat void

WriteProcessingInstruction() public méthode

public WriteProcessingInstruction ( string name, string text ) : void
name string
text string
Résultat void

WriteRaw() public méthode

public WriteRaw ( char buffer, int index, int count ) : void
buffer char
index int
count int
Résultat void

WriteRaw() public méthode

public WriteRaw ( string data ) : void
data string
Résultat void

WriteStartAttribute() public méthode

public WriteStartAttribute ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
Résultat void

WriteStartElement() public méthode

public WriteStartElement ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
Résultat void

WriteString() public méthode

public WriteString ( string text ) : void
text string
Résultat void

WriteSurrogateCharEntity() public méthode

public WriteSurrogateCharEntity ( char lowChar, char highChar ) : void
lowChar char
highChar char
Résultat void

WriteValue() public méthode

All other WriteValue methods are implemented by XmlWriter to delegate to WriteValue(object) or WriteValue(string), so only these two methods need to be implemented.
public WriteValue ( object value ) : void
value object
Résultat void

WriteValue() public méthode

public WriteValue ( string value ) : void
value string
Résultat void

WriteWhitespace() public méthode

public WriteWhitespace ( string ws ) : void
ws string
Résultat void

XmlEventCache() public méthode

public XmlEventCache ( string baseUri, bool hasRootNode ) : System
baseUri string
hasRootNode bool
Résultat System