Task.ExecutionValue 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
사용자 정의 객체를 반환합니다. 이 필드는 읽기 전용입니다.
public:
virtual property System::Object ^ ExecutionValue { System::Object ^ get(); };
public virtual object ExecutionValue { get; }
member this.ExecutionValue : obj
Public Overridable ReadOnly Property ExecutionValue As Object
속성 값
사용자 정의 개체입니다.
예제
다음 코드 예시는 Send Mail 작업을 생성하며, 이 작업은 에서 Task상속받아 그 작업이 상속받은 속성을 보여줍니다.
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Dts.Runtime;
using Microsoft.SqlServer.Dts.Tasks.SendMailTask;
namespace Microsoft.SqlServer.SSIS.Samples
{
class Program
{
static void Main(string[] args)
{
Application app = new Application();
Package pkg = new Package();
// Add a Send Mail task to the package.
Executable exec = pkg.Executables.Add("STOCK:SendMailTask");
// Cast the task to its own class.
TaskHost th = exec as TaskHost;
SendMailTask smTask = th.InnerObject as SendMailTask;
// Display the properties inherited from Task.
Console.WriteLine("ExecutionValue: {0}", smTask.ExecutionValue);
Console.WriteLine("Version: {0}", smTask.Version);
Console.WriteLine("WaitForMe: {0}", smTask.WaitForMe);
}
}
}
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.SqlServer.Dts.Runtime
Imports Microsoft.SqlServer.Dts.Tasks.SendMailTask
Namespace Microsoft.SqlServer.SSIS.Samples
Class Program
Shared Sub Main(ByVal args() As String)
Dim app As Application = New Application()
Dim pkg As Package = New Package()
' Add a Send Mail task to the package.
Dim exec As Executable = pkg.Executables.Add("STOCK:SendMailTask")
' Cast the task to its own class.
Dim th As TaskHost = exec as TaskHost
Dim smTask As SendMailTask = th.InnerObject as SendMailTask
' Display the properties inherited from Task.
Console.WriteLine("ExecutionValue: {0}", smTask.ExecutionValue)
Console.WriteLine("Version: {0}", smTask.Version)
Console.WriteLine("WaitForMe: {0}", smTask.WaitForMe)
End Sub
End Class
End Namespace
샘플 출력:
실행 가치:
버전: 0
WaitForMe: 맞아요
설명
클래스의 Task 속성은 ExecutionValue 읽기 전용 객체 속성으로, 작업이 실행 결과, 메시지 게시, 반환 값을 반환 DTSExecResult 하는 정보를 노출할 수 있는 능력을 부여합니다. 예를 들어, 작업이 메서드의 Execute 일부로 테이블에서 행을 삭제한다면, 삭제 ExecutionValue된 행 수를 . 작업 클라이언트는 이 값을 사용해 작업 간 우선순위 제약을 설정할 수 있습니다.
작업은 속성의 ExecutionValue 기본 구현과 작업 메서드 중 Execute 설정하는 값을 덮어씁니다.