XElement.EmptySequence 属性

定义

获取元素的空集合。

public:
 static property System::Collections::Generic::IEnumerable<System::Xml::Linq::XElement ^> ^ EmptySequence { System::Collections::Generic::IEnumerable<System::Xml::Linq::XElement ^> ^ get(); };
public static System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement> EmptySequence { get; }
static member EmptySequence : seq<System.Xml.Linq.XElement>
Public Shared ReadOnly Property EmptySequence As IEnumerable(Of XElement)

属性值

IEnumerable<T>其中一个XElement包含空集合。

注解

编写返回元素集合的方法时,类实现器通常使用此属性。 如果该方法必须不返回任何元素,则可以使用此属性获取对象的空集合 XElement

适用于

另请参阅