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)