This document is archived and information here might be outdated.  Recommended version.


IPMFPackage.Package Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Publisher)  

IPMFPackage.Package Method

Create the data package using the current files.

[Visual Basic .NET]
Public Sub Package ( _
    ByVal pSettings As IPropertySet, _
    ByVal pCancel As ITrackCancel, _
    ByVal pArray As IStringArray _
)
[C#]
public void Package (
    IPropertySet pSettings,
    ITrackCancel pCancel,
    IStringArray pArray
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Use Package to programatically package one or more published maps.

Remarks

When using package you will need to use a property set that contains instructions for how the published maps and data will be packaged along with the package location. Use GetDefaultPackagerSettings to fill the property set with all of the default settings. Use SetProperty to make the desired changes to the default settings.

The following settings apply to packaging:

To set the packaged data types use "Vector Type" as esriAPEVectorType and "Raster Type" as esriAPERasterType

For controlling the amount of data to package use "Vector Clip Type" as esriAPEVectorClipType and "Raster Clip Type" as esriAPERasterClipType.

To remove layers from the package that do not reference packaged data use "Include Only Data Layers" as boolean. Set to TRUE to remove layers that do not reference data in the package.

To increase or decrease the size of the buffer used on the data frame(s) for clipping use "Clip Buffer" as long. Acceptable values are 0 - 100. This is a percentage of the data frame(s) diagonal.

Specify the location of the package directory using "Package Directory" as string. This is an existing directory that will contain the data package.

Along with settings you will also need to supply ICancelTracker and an IStringArray of valid published maps. ICancelTracker does not need to be set and if it is not set, users will not be able to abort the packaging process.

 

 

 

See Also

IPMFPackage Interface

.NET Related Topics

Publisher