Dela via


JobStep.DeleteLogs Method (Int32)

Deletes job step log files that have log numbers lower than the specified value.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub DeleteLogs ( _
    largerThan As Integer _
)
'Usage
Dim instance As JobStep
Dim largerThan As Integer

instance.DeleteLogs(largerThan)
public void DeleteLogs(
    int largerThan
)
public:
void DeleteLogs(
    int largerThan
)
member DeleteLogs : 
        largerThan:int -> unit 
public function DeleteLogs(
    largerThan : int
)

Parameters

  • largerThan
    Type: System.Int32
    A Int32 value that specifies the log number. Log files that have a lower number are deleted.