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; }
member this.EmptySequence : seq<System.Xml.Linq.XElement>
Public Shared ReadOnly Property EmptySequence As IEnumerable(Of XElement)

屬性值

IEnumerable<XElement>

IEnumerable<T>XElement,包含空的集合。

備註

撰寫傳回專案集合的方法時,類別實作器通常會使用這個屬性。 如果方法不可以傳回任何專案,它可以使用這個屬性來取得空的物件 XElement 集合。

適用於

另請參閱