Partager via


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

Notes

Cette méthode a été introduite dans SQL Server 2005.