AddPackageOptions.RetainFilesOnFailure 属性

定义

获取或设置一个值,该值指示在部署失败的情况下,是否删除在安装过程中在目标计算机上创建的文件。

public:
 property bool RetainFilesOnFailure { bool get(); void set(bool value); };
bool RetainFilesOnFailure();

void RetainFilesOnFailure(bool value);
public bool RetainFilesOnFailure { get; set; }
var boolean = addPackageOptions.retainFilesOnFailure;
addPackageOptions.retainFilesOnFailure = boolean;
Public Property RetainFilesOnFailure As Boolean

属性值

Boolean

bool

TRUE 指示在部署失败的情况下,将删除在安装过程中在目标计算机上创建的文件;否则为 FALSE

适用于