JobStep.DeleteLogs-Methode (DateTime)
Deletes job step log files that are older than the specified date.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub DeleteLogs ( _
olderThan As DateTime _
)
'Usage
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
)
Parameter
- olderThan
Typ: System.DateTime
A DateTime system object value that specifies the date. Log files that have an earlier date are deleted.
Hinweise
Diese Methode wurde in SQL Server 2005 eingeführt.
Beispiele
Planen von automatischen, administrativen Tasks im SQL Server-Agent
Siehe auch
Verweis
Microsoft.SqlServer.Management.Smo.Agent-Namespace