DataSource for Entity Framework in WPF
C1.LiveLinq.LiveViews.Xml Namespace / XmlExtensions Class / AsLive Method / AsLive(XElement) Method
The XML element to expose as a view.

In This Topic
    AsLive(XElement) Method
    In This Topic
    Creates a view based on the specified XML element.
    Syntax
    'Declaration
     
    Public Overloads Shared Function AsLive( _
       ByVal element As XElement _
    ) As View(Of XElement)
    public static View<XElement> AsLive( 
       XElement element
    )

    Parameters

    element
    The XML element to expose as a view.

    Return Value

    A view representing the specified XML element.
    Remarks

    This view represents a single XML node. Therefore, as a collection of items, this view's Count is always 1. This view is usually used as a starting point to construct a view containing elements or attributes from this node's descendants by using a query with operators from XmlExtensions such as Elements, Descendants and others, in combination with standard LINQ query operators where, join and others.

    Note: This view is owned by the System.Xml.Linq.XElement object (it is stored as one of its annotations), so, if you create a view for the same element several times, it will be the same object.

    See Also