Metodo DeleteLogs (DateTime)
Deletes job step log files that are older than the specified date.
Spazio dei nomi Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Sintassi
'Dichiarazione
Public Sub DeleteLogs ( _
olderThan As DateTime _
)
'Utilizzo
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
)
Parametri
- olderThan
Tipo: System. . :: . .DateTime
A DateTime system object value that specifies the date. Log files that have an earlier date are deleted.