다음을 통해 공유


ExecuteProcess 클래스

Runs an application or batch file as part of a package workflow. This class cannot be inherited.

상속 계층

System.Object
  Microsoft.SqlServer.Dts.Runtime.DtsObject
    Microsoft.SqlServer.Dts.Runtime.Task
      Microsoft.SqlServer.Dts.Tasks.ExecuteProcess.ExecuteProcess

네임스페이스:  Microsoft.SqlServer.Dts.Tasks.ExecuteProcess
어셈블리:  Microsoft.SqlServer.ExecProcTask(Microsoft.SqlServer.ExecProcTask.dll)

구문

‘선언
<GuidAttribute("6BD3E0BE-DDDE-4305-95D5-5B52C6EEF84F")> _
Public NotInheritable Class ExecuteProcess _
    Inherits Task _
    Implements IDTSExecuteProcess, IDTSComponentPersist
‘사용 방법
Dim instance As ExecuteProcess
[GuidAttribute("6BD3E0BE-DDDE-4305-95D5-5B52C6EEF84F")]
public sealed class ExecuteProcess : Task, 
    IDTSExecuteProcess, IDTSComponentPersist
[GuidAttribute(L"6BD3E0BE-DDDE-4305-95D5-5B52C6EEF84F")]
public ref class ExecuteProcess sealed : public Task, 
    IDTSExecuteProcess, IDTSComponentPersist
[<SealedAttribute>]
[<GuidAttribute("6BD3E0BE-DDDE-4305-95D5-5B52C6EEF84F")>]
type ExecuteProcess =  
    class 
        inherit Task 
        interface IDTSExecuteProcess 
        interface IDTSComponentPersist 
    end
public final class ExecuteProcess extends Task implements IDTSExecuteProcess, IDTSComponentPersist

ExecuteProcess 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 ExecuteProcess Initializes a new instance of the ExecuteProcess class.

맨 위로 이동

속성

  이름 설명
공용 속성 Arguments Gets or sets command prompt arguments. The string can contain multiple arguments separated by a space.
공용 속성 Executable Gets or sets the name of the Microsoft Win32 executable file or batch file to run when the package runs.
공용 속성 ExecutionValue Returns a user-defined object. This property is read-only. (Task.ExecutionValue을(를) 재정의함)
공용 속성 FailTaskIfReturnCodeIsNotSuccessValue Gets or sets a Boolean that indicates whether the task fails if the process exit code is different from the value specified in SuccessValue.
공용 속성 RequireFullFileName Gets or sets a Boolean that indicates whether the full name and extension of the task is required.
공용 속성 StandardErrorVariable Gets or sets the name of the variable used to capture the error output of the process to be run.
공용 속성 StandardInputVariable Gets or sets the name of the variable to be used as an input to the process to be run.
공용 속성 StandardOutputVariable Gets or sets the name of the variable used to capture the output of the process to be run.
공용 속성 SuccessValue Gets or sets the value returned by the executable or batch file that indicates success.
공용 속성 TerminateProcessAfterTimeOut Gets or sets a Boolean that indicates whether the process is forced to end after the time-out period specified by the TimeOut property.
공용 속성 TimeOut Gets or sets the number of seconds that the task allows the process to run.
공용 속성 Version *** Member deprecated; see Remarks. ***    Returns the version of the task. This property is read-only. (Task에서 상속됨)
공용 속성 WindowStyle Gets or sets the style of the window to run the process in.
공용 속성 WorkingDirectory Gets or sets the directory in which the files specified in the Arguments property can be found.

맨 위로 이동

메서드

  이름 설명
공용 메서드 CanUpdate *** Member deprecated; see Remarks. ***    A Boolean that indicates whether the new package XML can update the old package XML. (Task에서 상속됨)
공용 메서드 Equals Determines whether two object instances are equal. (DtsObject에서 상속됨)
공용 메서드 Execute Runs the task. (Task.Execute(Connections, VariableDispenser, IDTSComponentEvents, IDTSLogging, Object)을(를) 재정의함)
공용 메서드 GetConnectionID Gets a String containing the ID of the connection. (Task에서 상속됨)
공용 메서드 GetConnectionName Gets a String containing the name of the connection. (Task에서 상속됨)
공용 메서드 GetHashCode Returns the hash code for this instance. (DtsObject에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 InitializeTask Initializes the properties associated with the task. This method is called by the runtime and is not used in code. (Task.InitializeTask(Connections, VariableDispenser, IDTSInfoEvents, IDTSLogging, EventInfos, LogEntryInfos, ObjectReferenceTracker)을(를) 재정의함)
공용 메서드 LoadFromXML This method is not callable by your application code. To load a package saved as .xml, use the Application.LoadPackage method.
공용 메서드 SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method.
공용 메서드 ToString (Object에서 상속됨)
공용 메서드 Update *** Member deprecated; see Remarks. ***    This method updates the old package XML with the new package XML if CanUpdate is set to true. (Task에서 상속됨)
공용 메서드 Validate Verifies that the component is properly configured. (Task.Validate(Connections, VariableDispenser, IDTSComponentEvents, IDTSLogging)을(를) 재정의함)

맨 위로 이동

주의

Although you can use the ExecuteProcess task to open any standard application, such as Microsoft Excel or Microsoft Word, you typically use it to run business applications or batch files that work against a data source.

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Dts.Tasks.ExecuteProcess 네임스페이스