Application.VacuumSchedules Property

Gets the data removal schedule for the application.

命名空间: Microsoft.SqlServer.Management.Nmo
程序集: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

语法

声明
Public ReadOnly Property VacuumSchedules As VacuumScheduleCollection
public VacuumScheduleCollection VacuumSchedules { get; }
public:
property VacuumScheduleCollection^ VacuumSchedules {
    VacuumScheduleCollection^ get ();
}
/** @property */
public VacuumScheduleCollection get_VacuumSchedules ()
public function get VacuumSchedules () : VacuumScheduleCollection

属性值

A VacuumScheduleCollection object containing the data removal schedule.

备注

Use the methods of the VacuumScheduleCollection class to add or remove VacuumSchedule objects.

示例

The following examples show how to define a vacuum schedule and add it to an application:

VacuumSchedule vacuumSchedule1 = new VacuumSchedule(
    myApplication, "1");
vacuumSchedule1.StartTime = new TimeSpan(23, 0, 0);
myApplication.VacuumSchedules.Add(vacuumSchedule1);
Dim vacuumSchedule1 As VacuumSchedule = _
    New VacuumSchedule(myApplication, "1")
vacuumSchedule1.StartTime = New TimeSpan(23, 0, 0)
myApplication.VacuumSchedules.Add(vacuumSchedule1)

线程安全

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

Application Class
Application Members
Microsoft.SqlServer.Management.Nmo Namespace
VacuumSchedule

其他资源

配置数据删除操作
删除过时的应用程序数据
VacuumSchedule Element (ADF)