Was this page helpful?

Item Property

    this[int index]

    public XDoc this[int index] { get; }
    Returns the XDoc at the given index of the root XDoc or an empty instance if the index is out of bounds.

    Parameters

    Name Type Description
    index int Index of the child instance of the root XDoc instance.

    Value

    Type: XDoc

    this[string path]

    public XDoc this[string path] { get; }
    Returns a new rooted XDoc instance based on the supplied XPath. The selection starts at the first result.

    Parameters

    Name Type Description
    path string XPath 1.0 expression to select XDoc instances in the current XDoc instance.

    Value

    Type: XDoc

    this[XmlNode node]

    public XDoc this[XmlNode node] { get; }
    Returns a new rooted XDoc instance representing the given XmlNode instance. The XmlNode instance must belong to the same XmlDocument instance as the XDoc instance.

    Parameters

    Name Type Description
    node XmlNode XmlNode instance to wrapt. Cannot be null.

    Value

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

    Copyright © 2011 MindTouch, Inc. Powered by