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

屬性值

IEnumerable<XAttribute>

IEnumerable<T>XAttribute,包含空集合。

備註

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

適用於

另請參閱