XAttribute.EmptySequence 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
獲得一個空屬性集合。
public:
static property System::Collections::Generic::IEnumerable<System::Xml::Linq::XAttribute ^> ^ EmptySequence { System::Collections::Generic::IEnumerable<System::Xml::Linq::XAttribute ^> ^ get(); };
public static System.Collections.Generic.IEnumerable<System.Xml.Linq.XAttribute> EmptySequence { get; }
static member EmptySequence : seq<System.Xml.Linq.XAttribute>
Public Shared ReadOnly Property EmptySequence As IEnumerable(Of XAttribute)
屬性值
包含空集合的 of IEnumerable<T>XAttribute 。
備註
這個特性通常被類別實作者在撰寫回傳屬性集合的方法時使用。 如果方法需要回傳一個空屬性集合,它可以利用這個屬性來取得一個空物件集合 XAttribute 。