## XmlSchemaObjectCollection::Add method


将一个 [XmlSchemaObject](../../xmlschemaobject/) 添加到 [XmlSchemaObjectCollection](../)。

```cpp
int32_t System::Xml::Schema::XmlSchemaObjectCollection::Add(const SharedPtr<XmlSchemaObject> &item)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| item | const SharedPtr\<XmlSchemaObject\>\& | [XmlSchemaObject](../../xmlschemaobject/)。 |

### ReturnValue

已添加项目的索引位置。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlSchemaObject](../../xmlschemaobject/)
* Class [XmlSchemaObjectCollection](../)
* Namespace [System::Xml::Schema](../../)
* Library [Aspose.Page for C++](../../../)
