다음을 통해 공유


EnumJobStepLogs 메서드 (Int32)

Enumerates a list of job step log files for the job step with the specified ID value.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Function EnumJobStepLogs ( _
    stepId As Integer _
) As DataTable
‘사용 방법
Dim instance As Job
Dim stepId As Integer
Dim returnValue As DataTable

returnValue = instance.EnumJobStepLogs(stepId)
public DataTable EnumJobStepLogs(
    int stepId
)
public:
DataTable^ EnumJobStepLogs(
    int stepId
)
member EnumJobStepLogs : 
        stepId:int -> DataTable 
public function EnumJobStepLogs(
    stepId : int
) : DataTable

매개 변수

반환 값

유형: System.Data. . :: . .DataTable
A DataTable object value that contains an enumerated list of all the job step log files for the job step with the specified ID value.

The following code example creates a job then displays the job step log files for the specified job step ID.

C#

Server srv = new Server("(local)");
Job jb = srv.JobServer.Jobs["Test Job"];
DataTable stepLogs = jb.EnumStepLogs(1);

PowerShell

$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
$jb = $srv.JobServer.Jobs["Test Job"]
$stepLogs = $jb.EnumStepLogs(1)