## XmlSchemaObjectCollection::Add method


Adds an [XmlSchemaObject](../../xmlschemaobject/) to the [XmlSchemaObjectCollection](../).

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


| Parameter | Type | Description |
| --- | --- | --- |
| item | const SharedPtr\<XmlSchemaObject\>\& | The [XmlSchemaObject](../../xmlschemaobject/). |

### ReturnValue

The index at which the item has been added.

## See Also

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