com.esri.arcgis.enginecore
Interface IPackageFile

All Superinterfaces:
Serializable
All Known Implementing Classes:
PackageFile

public interface IPackageFile
extends Serializable

Provides access to members that work with package files.

Description

The PackageFile CoClass allows developers to unpack packages ArcGIS packages. The Unpack method allows developers to specify an unpack location and returns the contents of the package as a StringArray.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 IStringArray unpack(String fileorURL, String[] pUnpackLocation)
          Unpacks a package.
 

Method Detail

unpack

IStringArray unpack(String fileorURL,
                    String[] pUnpackLocation)
                    throws IOException,
                           AutomationException
Unpacks a package.

Description

The Unpack method requires a reference to a string and the path to the package that is being unpacked. Developers can pass in a string to the location they want the package to unpack to. This should be a general location. After the package unpacks the string will be updated with the path to the content of the package. For example, if a you are unpacking a Map Package to c:\Packages, the unpack location string will be updated to the path to the MXD.

If a package has been previously unpacked to a different location the path to the previous location will be returned. Passing in an empty string will use the default package location.

The unpack method returns a StringArray containing the path to the package content.

Remarks

The unpack method does not support Geoprocessing Packages.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
fileorURL - The fileorURL (in)
pUnpackLocation - The pUnpackLocation (in/out: use single element array)
Returns:
A reference to a com.esri.arcgis.system.IStringArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.