DeleteLogs Método (DateTime)
Deletes job step log files that are older than the specified date.
Espacio de nombres: Microsoft.SqlServer.Management.Smo.Agent
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Sub DeleteLogs ( _
olderThan As DateTime _
)
'Uso
Dim instance As JobStep
Dim olderThan As DateTime
instance.DeleteLogs(olderThan)
public void DeleteLogs(
DateTime olderThan
)
public:
void DeleteLogs(
DateTime olderThan
)
member DeleteLogs :
olderThan:DateTime -> unit
public function DeleteLogs(
olderThan : DateTime
)
Parámetros
- olderThan
Tipo: System. . :: . .DateTime
A DateTime system object value that specifies the date. Log files that have an earlier date are deleted.
Notas
Este método se introdujo en SQL Server 2005.