다음을 통해 공유


IDTSExecutionMetrics.ExecutionDuration 속성

정의

컨테이너 실행에 걸린 시간(밀리초)을 나타내는 값을 반환합니다. 이 속성은 읽기 전용입니다.

public:
 property int ExecutionDuration { int get(); };
public int ExecutionDuration { get; }
member this.ExecutionDuration : int
Public ReadOnly Property ExecutionDuration As Integer

속성 값

컨테이너가 실행하는 데 소요된 시간을 포함하는 정수입니다. 이 시간은 밀리초 단위입니다.

예제

다음 코드 예제에서는 명명 pkg 된 패키지가 만들어졌다고 가정합니다. 패키지가 실행되고 실행의 시작 시간, 중지 시간 및 기간이 기록됩니다. 변수는 패키지를 실행하여 정보를 캡처한 후에 만들어집니다. pkg 인터페이스를 상속하므로 개체를 상속DtsContainer하는 컨테이너, 작업 또는 개체로 DtsContainer 대체할 수 있습니다IDTSExecutionMetrics.

pkg.Execute();  
DateTime dtStart = pkg.StartTime;  
DateTime dtStop = pkg.StopTime;  
int pgkDuration = pkg.ExecutionDuration;  
pkg.Execute()  
Dim dtStart As DateTime =  pkg.StartTime   
Dim dtStop As DateTime =  pkg.StopTime   
Dim pgkDuration As Integer =  pkg.ExecutionDuration  

적용 대상