Was this page helpful?

ToString Method

    ToString()

    public override string ToString();
    Renders the XDoc instance as an XML document using UTF-8 encoding.

    Parameters

    Name Type Description

    Returns

    Type: string

    ToString(Encoding encoding)

    public string ToString(Encoding encoding);
    Renders the XDoc instance as an XML document using the given encoding.

    Parameters

    Name Type Description
    encoding Encoding Text encoding.

    Returns

    Type: string

    ToString(Encoding encoding, bool declaration)

    public string ToString(Encoding encoding, bool declaration);
    Renders the XDoc instance as an XML document using the given encoding.

    Parameters

    Name Type Description
    encoding Encoding Text encoding.
    declaration bool Include XML declaration.

    Returns

    Type: string
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by