This method allows the client to add an object to the list of objects to be exported.
HRESULT Add(
IRepositoryObject *pIRO
Long Flags
);
pIRO [in]
A pointer to the repository object to be added to the exported objects list.
Flags [in]
The following table describes the flag.
| Enumerator | Value | Description |
|---|---|---|
| ADDCONTAINING_BASE | 1 | Only objects that are contained in base collections of the current object are added. |
| ADDCONTAINING_MOSTDERIVED | 2 | Only objects that are in the most derived collections of the current object are added. |
S_OK indicates successful completion.
An error value indicates that the method failed to complete successfully. For more information, see XML Encoding Errors.
In Automation, this method has the following syntax:
object.Add pIRO [,Flags]
The Add method syntax has the following parts.
| Parameter | Description |
|---|---|
| object | An object declared as MSMDCXML.Export |
| pIRO | An object expression that evaluates to RepositoryObject |
| Flags | ADDCONTAINING |