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

A class represents a Xml Writer XmlWriterInjector which inherits from "XmlWriter". Use this class instead of XmlWriter to get the request data from request stream during the processing of the proxy class generated by WSDL.exe.
Inheritance: System.Xml.XmlWriter
Show file Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method Description
Close ( ) : void

A method used to override the method "Close". It closes this stream and the underlying stream.

Flush ( ) : void

A method used to override the method "Flush". It flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.

LookupPrefix ( string ns ) : string

A method used to override the method "LookupPrefix". It returns the closest prefix defined in the current namespace scope for the namespace URI.

WriteAttributes ( XmlReader reader, bool defattr ) : void

A method used to writes out all the attributes found at the current position in the System.Xml.XmlReader.

WriteBase64 ( byte buffer, int index, int count ) : void

A method used to override the method "WriteBase64" of XmlWriter.

WriteBinHex ( byte buffer, int index, int count ) : void

A method used to encodes the specified binary bytes as BinHex and writes out the resulting text.

WriteCData ( string text ) : void

A method used to override the method "WriteCData" of XmlWriter.

WriteCharEntity ( char ch ) : void

A method used to override the method "WriteCharEntity" of XmlWriter.

WriteChars ( char buffer, int index, int count ) : void

A method used to override the method "WriteChars" of XmlWriter.

WriteComment ( string text ) : void

A method used to override the method "WriteComment" of XmlWriter.

WriteDocType ( string name, string pubid, string sysid, string subset ) : void

A method used to override the method "WriteDocType" of XmlWriter.

WriteEndAttribute ( ) : void

A method used to override the method "WriteEndAttribute" of XmlWriter.

WriteEndDocument ( ) : void

A method used to override the method "WriteEndDocument" of XmlWriter.

WriteEndElement ( ) : void

A method used to override the method "WriteEndElement" of XmlWriter.

WriteEntityRef ( string name ) : void

A method used to override the method "WriteEntityRef" of XmlWriter.

WriteFullEndElement ( ) : void

A method used to override the method "WriteFullEndElement" of XmlWriter.

WriteName ( string name ) : void

A method used to writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0.

WriteNmToken ( string name ) : void

A method used to writes out the specified name, ensuring it is a valid NmToken according to the W3C XML 1.0.

WriteNode ( System navigator, bool defattr ) : void

A method used to copies everything from the reader to the writer and moves the reader to the start of the next sibling.

WriteNode ( XmlReader reader, bool defattr ) : void

A method used to copies everything from the reader to the writer and moves the reader to the start of the next sibling.

WriteProcessingInstruction ( string name, string text ) : void

A method used to override the method "WriteProcessingInstruction" of XmlWriter.

WriteQualifiedName ( string localName, string ns ) : void

A method used to writes out the namespace-qualified name.

WriteRaw ( char buffer, int index, int count ) : void

A method used to override the method "WriteRaw" of XmlWriter.

WriteRaw ( string data ) : void

A method used to override the method "WriteRaw" of XmlWriter.

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

A method used to override the method "WriteStartAttribute" of XmlWriter.

WriteStartDocument ( ) : void

A method used to override the method "WriteStartDocument" of XmlWriter.

WriteStartDocument ( bool standalone ) : void

A method used to override the method "WriteStartDocument" of XmlWriter.

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

A method used to override the method "WriteStartElement" of XmlWriter.

WriteString ( string text ) : void

A method used to override the method "WriteString" of XmlWriter.

WriteSurrogateCharEntity ( char lowChar, char highChar ) : void

A method used to override the method "WriteSurrogateCharEntity" of XmlWriter.

WriteValue ( System.DateTime value ) : void

A method used to writes a System.DateTime value.

WriteValue ( bool value ) : void

A method used to writes a System.Boolean value.

WriteValue ( decimal value ) : void

A method used to writes a System.Decimal value.

WriteValue ( double value ) : void

A method used to writes a System.Double value.

WriteValue ( float value ) : void

A method used to writes a single-precision floating-point number.

WriteValue ( int value ) : void

A method used to writes a System.Int32 value.

WriteValue ( long value ) : void

A method used to writes a System.Int64 value.

WriteValue ( object value ) : void

A method used to writes the object value.

WriteValue ( string value ) : void

A method writes a System.String value.

WriteWhitespace ( string ws ) : void

A method used to override the method "WriteWhitespace" of XmlWriter.

XmlWriterInjector ( XmlWriter implementation ) : System

Initializes a new instance of the XmlWriterInjector class.

Method Details

Close() public method

A method used to override the method "Close". It closes this stream and the underlying stream.
public Close ( ) : void
return void

Flush() public method

A method used to override the method "Flush". It flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
public Flush ( ) : void
return void

LookupPrefix() public method

A method used to override the method "LookupPrefix". It returns the closest prefix defined in the current namespace scope for the namespace URI.
public LookupPrefix ( string ns ) : string
ns string A method represents the namespace URI whose prefix you want to find.
return string

WriteAttributes() public method

A method used to writes out all the attributes found at the current position in the System.Xml.XmlReader.
public WriteAttributes ( XmlReader reader, bool defattr ) : void
reader XmlReader The XmlReader from which to copy the attributes.
defattr bool A parameter represents whether copy the default attributes from the XmlReader, true means copy, false means not copy.
return void

WriteBase64() public method

A method used to override the method "WriteBase64" of XmlWriter.
public WriteBase64 ( byte buffer, int index, int count ) : void
buffer byte A parameter represents Byte array to encode.
index int A parameter represents the position in the buffer indicating the start of the bytes to write.
count int A parameter represents the number of bytes to write.
return void

WriteBinHex() public method

A method used to encodes the specified binary bytes as BinHex and writes out the resulting text.
public WriteBinHex ( byte buffer, int index, int count ) : void
buffer byte A parameter represents the Byte array to encode.
index int A parameter represents the position in the buffer indicating the start of the bytes to write.
count int A parameter represents the number of bytes to write.
return void

WriteCData() public method

A method used to override the method "WriteCData" of XmlWriter.
public WriteCData ( string text ) : void
text string A parameter represents the text to place inside the CDATA block.
return void

WriteCharEntity() public method

A method used to override the method "WriteCharEntity" of XmlWriter.
public WriteCharEntity ( char ch ) : void
ch char A parameter represents the Unicode character for which to generate a character entity.
return void

WriteChars() public method

A method used to override the method "WriteChars" of XmlWriter.
public WriteChars ( char buffer, int index, int count ) : void
buffer char A parameter represents the character array containing the text to write.
index int A parameter represents the position in the buffer indicating the start of the text to write.
count int A parameter represents the number of characters to write.
return void

WriteComment() public method

A method used to override the method "WriteComment" of XmlWriter.
public WriteComment ( string text ) : void
text string A parameter represents the text to place inside the comment.
return void

WriteDocType() public method

A method used to override the method "WriteDocType" of XmlWriter.
public WriteDocType ( string name, string pubid, string sysid, string subset ) : void
name string A parameter represents the name of the DOCTYPE. This must be non-empty.
pubid string A parameter represents that if non-null it also writes PUBLIC "pubid" "sysid" where pubid and sysid /// are replaced with the value of the given arguments.
sysid string A parameter represents that if pubid is null and sysid is non-null it writes SYSTEM "sysid" where /// sysid is replaced with the value of this argument.
subset string A parameter represents that if non-null it writes [subset] where subset is replaced with the value of this argument.
return void

WriteEndAttribute() public method

A method used to override the method "WriteEndAttribute" of XmlWriter.
public WriteEndAttribute ( ) : void
return void

WriteEndDocument() public method

A method used to override the method "WriteEndDocument" of XmlWriter.
public WriteEndDocument ( ) : void
return void

WriteEndElement() public method

A method used to override the method "WriteEndElement" of XmlWriter.
public WriteEndElement ( ) : void
return void

WriteEntityRef() public method

A method used to override the method "WriteEntityRef" of XmlWriter.
public WriteEntityRef ( string name ) : void
name string A parameter represents the name of the entity reference.
return void

WriteFullEndElement() public method

A method used to override the method "WriteFullEndElement" of XmlWriter.
public WriteFullEndElement ( ) : void
return void

WriteName() public method

A method used to writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0.
public WriteName ( string name ) : void
name string A parameter represents the name to write.
return void

WriteNmToken() public method

A method used to writes out the specified name, ensuring it is a valid NmToken according to the W3C XML 1.0.
public WriteNmToken ( string name ) : void
name string A parameter represents the name to write.
return void

WriteNode() public method

A method used to copies everything from the reader to the writer and moves the reader to the start of the next sibling.
public WriteNode ( System navigator, bool defattr ) : void
navigator System A parameter represents the System.Xml.XPath.XPathNavigator to copy from.
defattr bool A parameter represents whether copy the default attributes from the XmlReader, true means copy, false means not copy.
return void

WriteNode() public method

A method used to copies everything from the reader to the writer and moves the reader to the start of the next sibling.
public WriteNode ( XmlReader reader, bool defattr ) : void
reader XmlReader A parameter represents the System.Xml.XmlReader to read from.
defattr bool A parameter represents whether copy the default attributes from the XmlReader, true means copy, false means not copy.
return void

WriteProcessingInstruction() public method

A method used to override the method "WriteProcessingInstruction" of XmlWriter.
public WriteProcessingInstruction ( string name, string text ) : void
name string A parameter represents the name of the processing instruction.
text string A parameter represents the text to include in the processing instruction.
return void

WriteQualifiedName() public method

A method used to writes out the namespace-qualified name.
public WriteQualifiedName ( string localName, string ns ) : void
localName string A parameter represents the local name to write.
ns string >A parameter represents the namespace URI for the name.
return void

WriteRaw() public method

A method used to override the method "WriteRaw" of XmlWriter.
public WriteRaw ( char buffer, int index, int count ) : void
buffer char A parameter represents character array containing the text to write.
index int A parameter represents the position within the buffer indicating the start of the text to write.
count int A parameter represents the number of characters to write.
return void

WriteRaw() public method

A method used to override the method "WriteRaw" of XmlWriter.
public WriteRaw ( string data ) : void
data string A parameter represents the string containing the text to write.
return void

WriteStartAttribute() public method

A method used to override the method "WriteStartAttribute" of XmlWriter.
public WriteStartAttribute ( string prefix, string localName, string ns ) : void
prefix string A parameter represents the namespace prefix of the attribute.
localName string A parameter represents the local name of the attribute.
ns string A parameter represents the namespace URI for the attribute.
return void

WriteStartDocument() public method

A method used to override the method "WriteStartDocument" of XmlWriter.
public WriteStartDocument ( ) : void
return void

WriteStartDocument() public method

A method used to override the method "WriteStartDocument" of XmlWriter.
public WriteStartDocument ( bool standalone ) : void
standalone bool A parameter represents that if true, it writes "standalone=yes"; if false, it writes "standalone=no".
return void

WriteStartElement() public method

A method used to override the method "WriteStartElement" of XmlWriter.
public WriteStartElement ( string prefix, string localName, string ns ) : void
prefix string A parameter represents the namespace prefix of the element.
localName string A parameter represents the local name of the element.
ns string A parameter represents the namespace URI to associate with the element.
return void

WriteString() public method

A method used to override the method "WriteString" of XmlWriter.
public WriteString ( string text ) : void
text string A parameter represents the text to write.
return void

WriteSurrogateCharEntity() public method

A method used to override the method "WriteSurrogateCharEntity" of XmlWriter.
public WriteSurrogateCharEntity ( char lowChar, char highChar ) : void
lowChar char A parameter represents the low surrogate. This must be a value between 0xDC00 and 0xDFFF.
highChar char A parameter represents the high surrogate. This must be a value between 0xD800 and 0xDBFF.
return void

WriteValue() public method

A method used to writes a System.DateTime value.
public WriteValue ( System.DateTime value ) : void
value System.DateTime A parameter represents the System.DateTime value to write.
return void

WriteValue() public method

A method used to writes a System.Boolean value.
public WriteValue ( bool value ) : void
value bool A parameter represents the System.Boolean value to write.
return void

WriteValue() public method

A method used to writes a System.Decimal value.
public WriteValue ( decimal value ) : void
value decimal A parameter represents the System.Decimal value to write.
return void

WriteValue() public method

A method used to writes a System.Double value.
public WriteValue ( double value ) : void
value double A parameter represents the System.Double value to write.
return void

WriteValue() public method

A method used to writes a single-precision floating-point number.
public WriteValue ( float value ) : void
value float A parameter represents the single-precision floating-point number to write.
return void

WriteValue() public method

A method used to writes a System.Int32 value.
public WriteValue ( int value ) : void
value int A parameter represents the System.Int32 value to write.
return void

WriteValue() public method

A method used to writes a System.Int64 value.
public WriteValue ( long value ) : void
value long A parameter represents the System.Int64 value to write.
return void

WriteValue() public method

A method used to writes the object value.
public WriteValue ( object value ) : void
value object A parameter represents the object value to write.
return void

WriteValue() public method

A method writes a System.String value.
public WriteValue ( string value ) : void
value string A parameter represents the System.Boolean value to write.
return void

WriteWhitespace() public method

A method used to override the method "WriteWhitespace" of XmlWriter.
public WriteWhitespace ( string ws ) : void
ws string A parameter represents the string of white space characters.
return void

XmlWriterInjector() public method

Initializes a new instance of the XmlWriterInjector class.
public XmlWriterInjector ( XmlWriter implementation ) : System
implementation System.Xml.XmlWriter A parameter instance represents an XmlWriter type implementation.
return System