XAttribute.EmptySequence 屬性

定義

獲得一個空屬性集合。

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

適用於

另請參閱