ITcArchiveImportExport::ImportArchive
Imports an archive under the current Tree Item. The import mode (TCARCHIVE_IMPORTMODE) determines how the system handles conflicts. bstrBefore allows insertion before a named sibling item. Not implemented on regular Tree Items; on nested project nodes, the call is passed on to the inner project.
Signature
HRESULT ImportArchive(BSTR bstrFile, TCARCHIVE_IMPORTMODE mode, BSTR bstrBefore, VARIANT vInfo, ITcTreeItemCollection** pipItem);
Parameter
Name | Type | Description |
|---|---|---|
bstrFile | BSTR | [in] Full file path of the archive to be imported. |
mode | [in] Import mode (conflict/replacement behavior). | |
bstrBefore | BSTR | [in, defaultvalue(L"")] Name of a sibling item before which the insertion should occur. If empty, the item is appended at the end. |
vInfo | VARIANT | [in, optional] Additional import information (implementation-dependent). |
Return value
Name | Type | Description |
|---|---|---|
pipItem | [out, retval] Collection of the newly imported Tree Items. | |
(HRESULT) | HRESULT |
|
Error codes
-
E_NOTIMPL: not supported on simple Tree Items. -
TSM_E_ITEMDELETED: The referenced Tree Item is no longer valid.