C# Class Microsoft.Protocols.TestSuites.Common.ActiveSyncXmlWriter

ActiveSync XML writer.
Inheritance: System.Xml.XmlTextWriter
Afficher le fichier Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Méthodes publiques

Méthode Description
ActiveSyncXmlWriter ( Stream stream, Encoding encoding ) : System.Globalization

Initializes a new instance of the ActiveSyncXmlWriter class.

WriteEndAttribute ( ) : void

Closes the previous System.Xml.XmlTextWriter.WriteStartAttribute(System.String,System.String,System.String) call.

WriteRaw ( string data ) : void

Writes raw markup manually from a string.(true or false will be 1 or 0)

WriteStartAttribute ( string prefix, string localName, string ns ) : void

Writes the start of an attribute.

WriteStartElement ( string prefix, string localName, string ns ) : void

Writes the start of an element

WriteString ( string text ) : void

Writes the given text content.

WriteValue ( bool value ) : void

Override this, true or false will be 1 or 0

Private Methods

Méthode Description
IsCDATAValue ( ) : bool

Verifies whether the current element is a CDATA value or not.

Method Details

ActiveSyncXmlWriter() public méthode

Initializes a new instance of the ActiveSyncXmlWriter class.
public ActiveSyncXmlWriter ( Stream stream, Encoding encoding ) : System.Globalization
stream System.IO.Stream The steam be write.
encoding System.Text.Encoding Represents a character encoding.
Résultat System.Globalization

WriteEndAttribute() public méthode

Closes the previous System.Xml.XmlTextWriter.WriteStartAttribute(System.String,System.String,System.String) call.
public WriteEndAttribute ( ) : void
Résultat void

WriteRaw() public méthode

Writes raw markup manually from a string.(true or false will be 1 or 0)
public WriteRaw ( string data ) : void
data string String containing the text to write.
Résultat void

WriteStartAttribute() public méthode

Writes the start of an attribute.
public WriteStartAttribute ( string prefix, string localName, string ns ) : void
prefix string Namespace prefix of the attribute.
localName string LocalName of the attribute.
ns string NamespaceURI of the attribute
Résultat void

WriteStartElement() public méthode

Writes the start of an element
public WriteStartElement ( string prefix, string localName, string ns ) : void
prefix string Namespace prefix of the element.
localName string LocalName of the element.
ns string NamespaceURI of the element
Résultat void

WriteString() public méthode

Writes the given text content.
public WriteString ( string text ) : void
text string Text to write.
Résultat void

WriteValue() public méthode

Override this, true or false will be 1 or 0
public WriteValue ( bool value ) : void
value bool The value will be change.
Résultat void