Export (0) Print
Expand All

XAttribute.EmptySequence Property

Gets an empty collection of attributes.

Namespace:  System.Xml.Linq
Assembly:  System.Xml.Linq (in System.Xml.Linq.dll)

'Declaration
Public Shared ReadOnly Property EmptySequence As IEnumerable(Of XAttribute)

Property Value

Type: System.Collections.Generic.IEnumerable(Of XAttribute)
An IEnumerable(Of T) of XAttribute containing an empty collection.

This property is typically used by class implementers when writing a method that returns a collection of attributes. If the method needs to return an empty collection of attributes, it could use this property to get an empty collection of XAttribute objects.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft