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

ActiveSync XML writer.
Inheritance: System.Xml.XmlTextWriter
Show file Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method 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

Method Description
IsCDATAValue ( ) : bool

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

Method Details

ActiveSyncXmlWriter() public method

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.
return System.Globalization

WriteEndAttribute() public method

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

WriteRaw() public method

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.
return void

WriteStartAttribute() public method

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
return void

WriteStartElement() public method

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
return void

WriteString() public method

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

WriteValue() public method

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