CustomXmlPartCollection

CustomXmlPartCollection class

表示自定义 XML 部件的集合。

public class CustomXmlPartCollection : ICustomXmlPartCollection

Properties

NameDescription
Count { get; }返回集合中自定义 XML 部件的数量。只读 Int32。
IsSynchronized { get; }返回一个值,指示对集合的访问是否被同步(线程安全)。只读 Boolean。
Item { get; }返回指定索引处的元素。
SyncRoot { get; }返回一个同步根。只读 Object。

Methods

NameDescription
Add(byte[])添加新的自定义 XML 部件。
Add(Stream)添加新的自定义 XML 部件。
Add(string)添加新的自定义 XML 部件。
Clear()从集合中移除所有项。
CopyTo(Array, int)复制到指定数组。
GetEnumerator()返回一个枚举器,该枚举器迭代集合。
Remove(ICustomXmlPart)从集合中移除特定对象的第一次出现。
RemoveAt(int)移除指定索引处的自定义 XML 部件。

See Also