Share via


Application.VacuumSchedules Property

Gets the data removal schedule for the application.

Espacio de nombres: Microsoft.SqlServer.Management.Nmo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
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

Valor de propiedad

A VacuumScheduleCollection object containing the data removal schedule.

Notas

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

Ejemplo

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)

Seguridad para subprocesos

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.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

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

Otros recursos

Configurar la supresión de datos
Quitar datos de aplicación obsoletos
VacuumSchedule Element (ADF)