XElement.EmptySequence 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取元素的空集合。
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 。