DeleteLogs méthode (DateTime)
Deletes job step log files that are older than the specified date.
Espace de noms : Microsoft.SqlServer.Management.Smo.Agent
Assembly : Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub DeleteLogs ( _
olderThan As DateTime _
)
'Utilisation
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
)
Paramètres
- olderThan
Type : System. . :: . .DateTime
A DateTime system object value that specifies the date. Log files that have an earlier date are deleted.
Notes
Cette méthode a été introduite dans SQL Server 2005.