MarkLogic XCC/.Net Library |

# XdmItem.WriteTo Method (TextWriter)

Write the value of this item to the provided TextWriter object. The TextReader returned by the method AsReader() will be used as the value source.

[Visual Basic]
Sub WriteTo( _
ByVal writer As TextWriter _
)
[C#]
void WriteTo(
TextWriter writer
);

#### Parameters

writer
  A client-provided, open TextWriter object to which the value will be written. The TextWriter will not be closed by this method.

#### See Also

XdmItem Interface | Marklogic.Xcc.Types Namespace | XdmItem.WriteTo Overload List