XmlArrayItemAttributes 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表一組 XmlArrayItemAttribute 物件。
public ref class XmlArrayItemAttributes : System::Collections::IList
public ref class XmlArrayItemAttributes : System::Collections::CollectionBase
public class XmlArrayItemAttributes : System.Collections.IList
public class XmlArrayItemAttributes : System.Collections.CollectionBase
type XmlArrayItemAttributes = class
interface ICollection
interface IEnumerable
interface IList
type XmlArrayItemAttributes = class
inherit CollectionBase
Public Class XmlArrayItemAttributes
Implements IList
Public Class XmlArrayItemAttributes
Inherits CollectionBase
- 繼承
-
XmlArrayItemAttributes
- 繼承
- 實作
備註
這個 XmlArrayItemAttributes 類別允許你指定可以插入到由 public field 或 public read/write 屬性回傳的陣列中的派生型別。
此類別的實例由該XmlAttributes類別的屬性回傳XmlArrayItems。 該 XmlAttributes 類別用於覆寫可插入陣列的物件集合 XmlArrayItemAttribute ,而該陣列已套用該 XmlArrayAttribute 陣列。
對於你希望欄位或屬性接受的每個新類型,建立一個 XmlArrayItemAttribute 並使用 來Add將該物件加入該XmlArrayItems屬性回傳的XmlArrayItemAttributes集合。 Add 該 XmlAttributes 到 XmlAttributeOverrides,指定包含該欄位或屬性的物件型別,以及欄位或屬性的名稱。 先用 建構 a XmlSerializerXmlAttributeOverrides ,再呼叫 or SerializeDeserialize 方法。
建構函式
| 名稱 | Description |
|---|---|
| XmlArrayItemAttributes() |
初始化 XmlArrayItemAttributes 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| Capacity |
取得或設定 可以 CollectionBase 包含的元素數量。 (繼承來源 CollectionBase) |
| Count |
得到包含於 的 ICollection元素數量。 |
| Count |
取得該實例中包含 CollectionBase 的元素數量。 此屬性無法覆寫。 (繼承來源 CollectionBase) |
| InnerList |
取得包含實ArrayList例中元素清單的 。CollectionBase (繼承來源 CollectionBase) |
| Item[Int32] |
取得或設定項目在指定的索引位置。 |
| List |
取得包含實IList例中元素清單的 。CollectionBase (繼承來源 CollectionBase) |
方法
明確介面實作
擴充方法
| 名稱 | Description |
|---|---|
| AsParallel(IEnumerable) |
啟用查詢的平行處理。 |
| AsQueryable(IEnumerable) |
將 IEnumerable 轉換成 IQueryable。 |
| Cast<TResult>(IEnumerable) |
將 IEnumerable 的項目轉換成指定的型別。 |
| OfType<TResult>(IEnumerable) |
根據指定的型別篩選 IEnumerable 的專案。 |