.NET Framework Class Library
XElement.EmptySequence Property
Gets an empty collection of elements.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
Syntax
Visual Basic
Public Shared ReadOnly Property EmptySequence As IEnumerable(Of XElement) Get
C#
public static IEnumerable<XElement> EmptySequence { get; }
Visual C++
public: static property IEnumerable<XElement^>^ EmptySequence { IEnumerable<XElement^>^ get (); }
F#
static member EmptySequence : IEnumerable<XElement>
Property Value
Type: System.Collections.Generic.IEnumerable<XElement>An IEnumerable<T> of XElement that contains an empty collection.
Remarks
This property is typically used by class implementers when writing a method that returns a collection of elements. If the method must return no elements, it can use this property to get an empty collection of XElement objects.
Version Information
.NET Framework
Supported in: 4, 3.5.NET Framework Client Profile
Supported in: 4, 3.5 SP1Platforms
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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also