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 允许指定可插入到公共字段或公共读/写属性返回的数组中的派生类型。
此类的实例由 XmlArrayItems 类的属性 XmlAttributes 返回。 重写 XmlAttributes 可插入到已应用对象的数组中的对象集 XmlArrayItemAttribute 时,将使用该类 XmlArrayAttribute 。
对于希望字段或属性接受的每个新类型,请创建一个XmlArrayItemAttribute对象并使用Add该属性返回的XmlArrayItems集合添加对象XmlArrayItemAttributes。 Add XmlAttributeOverrides,XmlAttributes指定包含字段或属性的对象的类型以及字段或属性的名称。 使用XmlAttributeOverrides之前调用Serialize或Deserialize方法构造一个XmlSerializer。
构造函数
| 名称 | 说明 |
|---|---|
| XmlArrayItemAttributes() |
初始化 XmlArrayItemAttributes 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| Capacity |
获取或设置可包含的元素 CollectionBase 数。 (继承自 CollectionBase) |
| Count |
获取包含在 . 中的 ICollection元素数。 |
| Count |
获取实例中包含的 CollectionBase 元素数。 无法重写此属性。 (继承自 CollectionBase) |
| InnerList |
获取包含 ArrayList 实例中 CollectionBase 元素的列表。 (继承自 CollectionBase) |
| Item[Int32] |
获取或设置指定索引处的项。 |
| List |
获取包含 IList 实例中 CollectionBase 元素的列表。 (继承自 CollectionBase) |
方法
显式接口实现
扩展方法
| 名称 | 说明 |
|---|---|
| AsParallel(IEnumerable) |
启用查询的并行化。 |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。 |
| Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定类型。 |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。 |