ApplyMethod Property

Return the method that will be used to apply the updated file on the target system.

Syntax

object.ApplyMethod

The object is an expression that evaluates to a PackageFile object. The return value may be one of the follwing constants:

Constant Description
apApplyCreate The file will be created on the target system. If the file already exists, an error will be returned unless  the package is applied using either the apOverwrite or the apIgnoreExisting options.
apApplyReplace The file will be replaced on the target system. If the file does not exist, it will be created.
apApplyModify The file will be modified on the target system. This method indicates that the file stored in the package is a patch file.
apApplyRemove The file will be deleted from the target system.

Remarks

The ApplyMethod property returns a numeric value which specifies how the updated file will be applied on the target system. Note that if the method specifies that the file will be removed from the target system, only information about the file is stored in the package. There is no actual file data and it cannot be extracted from the package.