Table of contents
TOC
折叠目录
展开目录

Application.AutoRecoverInterval 属性 (Visio)Application.AutoRecoverInterval Property (Visio)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

代表为了防止电源故障或应用程序错误而保存打开的文档(含有未保存的更改)的副本的时间间隔(分钟)。读/写。Represents the time interval (in minutes) for how often you want to save copies of open documents that have unsaved changes in case of a power failure or an application error. Read/write.

语法Syntax

表达式AutoRecoverIntervalexpression . AutoRecoverInterval

表达式_一个表示应用程序对象的变量。_expression A variable that represents an Application object.

返回值Return Value

IntegerInteger

注解Remarks

必须是整数值从零 (0) 为 120,表示时间间隔,以分钟为单位。默认值为 0。如果AutoRecoverInterval属性的值是否小于或等于 0,则不创建任何自动恢复副本。Must be an integer value from zero (0) to 120, representing the interval in minutes. The default is 0. If the value of the AutoRecoverInterval property is less than or equal to 0, no automatic recovery copies are created.

AutoRecoverInterval属性的值大于 0,如果启用自动恢复的 Microsoft Visio 实例中的所有文档。若要禁用自动恢复为特定的文档,请自动恢复属性设置为FalseIf the value of the AutoRecoverInterval property is greater than 0, automatic recovery is enabled for all documents in the Microsoft Visio instance. To disable automatic recovery for a particular document, set its AutoRecover property to False .

示例Example

下面的 Microsoft Visual Basic for Applications (VBA) 宏显示如何将AutoRecoverInterval属性设置,以及如何使用它来禁用自动恢复。The following Microsoft Visual Basic for Applications (VBA) macros show how to set the AutoRecoverInterval property and how to use it to disable automatic recovery.


Public Sub AutoRecoverInterval_Example() 

    'Save automatic recovery copies of unsaved files 
    'every 10 minutes.  
    Application.AutoRecoverInterval = 10  

End Sub   

Public Sub DisableAutoRecover_Example() 

    'Tell Visio not to save automatic recovery copies of unsaved files.  
    Application.AutoRecoverInterval = 0  

End Sub
© 2018 Microsoft