Remove
CustomXmlPartCollection.Remove 方法
从集合中移除特定对象的第一次出现。
public bool Remove(ICustomXmlPart item)
| 参数 | 类型 | 描述 |
|---|---|---|
| item | ICustomXmlPart | 要移除的自定义 XML 部分。 |
返回值
如果成功移除 item,返回 true;否则返回 false。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | item 为 null。 |
从集合中移除特定对象的第一次出现。
public bool Remove(ICustomXmlPart item)
| 参数 | 类型 | 描述 |
|---|---|---|
| item | ICustomXmlPart | 要移除的自定义 XML 部分。 |
如果成功移除 item,返回 true;否则返回 false。
| 异常 | 条件 |
|---|---|
| ArgumentNullException | item 为 null。 |