IExport::Add Method

Meta Data Services Programming

Meta Data Services Programming

IExport::Add Method

This method allows the client to add an object to the list of objects to be exported.

COM Syntax

HRESULT Add(
      IRepositoryObject *pIRO
      Long Flags
);

Parameters

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.

Return Value

S_OK indicates successful completion.

An error value indicates that the method failed to complete successfully. For more information, see XML Encoding Errors.

Automation Syntax

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

See Also

Member Delegation

XML Import Export