ICOMAdminCatalog2::CopyApplications method (comadmin.h)

Copies the specified COM+ applications from one partition to another.

Syntax

HRESULT CopyApplications(
  BSTR    bstrSourcePartitionIDOrName,
  VARIANT *pVarApplicationID,
  BSTR    bstrDestinationPartitionIDOrName
);

Parameters

bstrSourcePartitionIDOrName

The partition GUID or the name of the source partition.

pVarApplicationID

The applications to be copied. Each element of the Variant may be a String containing an application name or ID, a single catalog object, or a catalog collection (as returned, for example, by the GetCollectionByQuery2 method).

bstrDestinationPartitionIDOrName

The partition GUID or the name of the destination partition.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header comadmin.h

See also

ICOMAdminCatalog2