|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPackageFile
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.
Method Summary | |
---|---|
IStringArray |
unpack(String fileorURL,
String[] pUnpackLocation)
Unpacks a package. |
Method Detail |
---|
IStringArray unpack(String fileorURL, String[] pUnpackLocation) throws IOException, AutomationException
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.
fileorURL
- The fileorURL (in)pUnpackLocation
- The pUnpackLocation (in/out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |