C1.LiveLinq.LiveViews.Xml Namespace > XmlExtensions Class > AsLive Method : AsLive(XElement) Method |
'Declaration Public Overloads Shared Function AsLive( _ ByVal element As System.Xml.Linq.XElement _ ) As View(Of XElement)
public static View<XElement> AsLive( System.Xml.Linq.XElement element )
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2