XMLTask 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
XMLTask 클래스의 새 인스턴스를 초기화합니다.
public:
XMLTask();
public XMLTask();
Public Sub New ()
예제
다음 코드 샘플은 생성자를 사용하여 새로운 XMLTask 코드를 생성합니다.
XMLTask myTask = new XMLTask();
Dim myTask As XMLTask = New XMLTask()
설명
코드 샘플은 작업 생성자를 호출하는 방법을 보여줍니다. 하지만 대부분의 경우, 당신은 패키지의 구성원으로서 작업을 생성하게 됩니다. 과제 Add캐스팅에 대한 자세한 내용은 .
Package pkg = new Package();
Executable exec1 = pkg.Executables.Add("STOCK:XMLTask");
TaskHost th = exec1 as TaskHost;
// You can cast the InnerObject of the TaskHost
// to the specific class.
// For the code samples, that task properties are accessed using
// the Properties of the TaskHost.
// XMLTask myTask = th.InnerObject as XMLTask;
Dim pkg As Package = New Package()
Dim exec1 As Executable = pkg.Executables.Add("STOCK:XMLTask")
Dim th As TaskHost = exec1 as TaskHost
' You can cast the InnerObject of the TaskHost
' to the specific class.
' For the code samples, that task properties are accessed using
' the Properties of the TaskHost.
' Dim myTask As XMLTask = th.InnerObject as XMLTask
의 XMLTask 성질과 방법은 를 Properties사용하여 얻을 수 있습니다.