Interface IPackageFile

All Superinterfaces:
All Known Implementing Classes:

public interface IPackageFile
extends Serializable

Provides access to members that work with package files.


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


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


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.


The unpack method does not support Geoprocessing Packages.

Product Availability

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

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