Was this page helpful?

WriteTo Method

    WriteTo(Stream stream)

    public void WriteTo(Stream stream);
    Renders the XDoc instance as an XML document using UTF-8 encoding.

    Parameters

    Name Type Description
    stream Stream Stream to render the instance on.

    Returns

    void

    WriteTo(Stream stream, Encoding encoding)

    public void WriteTo(Stream stream, Encoding encoding);
    Renders the XDoc instance as an XML document using the given encoding.

    Parameters

    Name Type Description
    stream Stream Stream to render the instance on.
    encoding Encoding Text encoding.

    Returns

    void

    WriteTo(Stream stream, Encoding encoding, bool declaration)

    public void WriteTo(Stream stream, Encoding encoding, bool declaration);
    Renders the XDoc instance as an XML document using the given encoding.

    Parameters

    Name Type Description
    stream Stream Stream to render the instance on.
    encoding Encoding Text encoding.
    declaration bool Include XML declaration.

    Returns

    void
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by