MessageQueueInstaller.UninstallAction 属性
定义
获取或设置一个值,该值指示安装程序在卸载时对队列执行的操作:移除队列,将队列还原为安装前的状态,或者将队列保留为当前的已安装状态。Gets or sets a value that indicates what the installer does with the queue at uninstall time: remove it, restore it to its pre-installation state, or leave it in its current installed state.
public:
property System::Configuration::Install::UninstallAction UninstallAction { System::Configuration::Install::UninstallAction get(); void set(System::Configuration::Install::UninstallAction value); };
public System.Configuration.Install.UninstallAction UninstallAction { get; set; }
member this.UninstallAction : System.Configuration.Install.UninstallAction with get, set
Public Property UninstallAction As UninstallAction
属性值
UninstallAction 值之一,指示在卸载 MessageQueue 时队列保留在什么状态。One of the UninstallAction values that indicates what state to leave the queue in when the MessageQueue is uninstalled. 默认值为 Remove。The default is Remove.
注解
安装队列时,可以选择使用现有队列。When you install a queue, you can optionally use an existing queue. 如果这样做,则必须确定队列是否应恢复为其安装前的状态,或保持其当前的安装后状态。If you do so, you must decide whether the queue should return to its pre-installation state, or remain in its current, post-installation state. 如果选择将队列返回到安装前的状态,则在安装时从队列中删除的消息将不会还原。If you elect to return the queue to its pre-installation state, messages that were deleted from the queue at install time are not restored. 你可以仅将与关联的队列属性重置 MessageQueueInstaller 为其预安装值。You can reset only queue properties that are associated with the MessageQueueInstaller to their pre-installation values.