Microsoft.SqlServer.ExecProcTask 命名空间包含执行进程任务使用的类。 将应用程序或批处理文件作为包工作流的一部分运行。无法继承此类。 初始化 类的新实例。 运行任务。 A value from the enumeration. A collection of connections used by the task. A object for locking variables. An object implementing the interface. An object implementing the interface. The transaction object that the container is a part of. This value can be null. 初始化与任务关联的属性。此方法由运行时调用,在代码中未使用。 A collection of connections used by the task. A object for locking variables. An object implementing the interface. An object implementing the interface. A collection containing events to be raised during execution of the task. A collection of log entries. An object reference tracker. 此方法不能由应用程序代码调用。若要加载保存为 .xml 的包,请使用 方法。 The node containing the object to be loaded and persisted. An object that implements the interface for raising events (errors, warnings, and so on) during persistence. 此方法不能由应用程序代码调用。若要将包保存为 .xml,请使用 方法。 The XML document to save the information to. An object that implements the interface for raising events (errors, warnings, and so on) during persistence. 验证该组件已正确配置。 A value from the enumeration. A collection of connections used by the task. A object for locking variables. An object that implements the interface. An object that implements the interface. 获取或设置命令提示符参数。该字符串可包含由空格分隔的多个参数。 A String that contains the command prompt argument or arguments. 获取或设置包运行时要运行的 Microsoft Win32 可执行文件或批处理文件的名称。 A String that contains the name of the Microsoft Win32 executable file or batch file to run when the package runs. 返回用户定义对象。该属性为只读。 A user-defined object. 获取或设置一个布尔值,该值指示在进程退出代码与 中指定的值不同时任务是否失败。 true if the task fails if the process exit code is different from the value specified in ; false if the task continues regardless of a mismatch between the process error code and the property. 获取或设置一个布尔值,该值指示是否需要任务的完整名称和扩展名。 true if the full name and extension of the task is required. If set to true, the task should fail when the full file name for the executable cannot be found. Default value is true. 获取或设置变量名称,该变量用于捕获要运行的进程的错误输出。 A String that contains the name of the variable used to capture the error output of the process to be run. 获取或设置变量名称,该变量用作要运行的进程的输入。 A String that contains the name of the variable to be used as an input to the process to be run. 获取或设置变量名称,该变量用于捕获要运行的进程的输出。 A String that contains the name of the variable used to capture the output of the process to be run. 获取或设置可执行文件或批处理文件返回的、指示成功的值。 An Integer that contains the value returned by the executable or batch file that indicates success. By default this value is set to 0. 获取或设置一个布尔值,该值指示在 属性指定的超时期过后是否强制结束进程。 true if the process is forced to end after the time-out period specified by the property. false if the process can continue to run regardless of the time-out period. 获取或设置任务允许进程运行的秒数。 An Integer that indicates the number of seconds that the task allows the process to run. A value of 0 indicates that no time-out value is used, and the process runs to completion or until an error occurs. 获取或设置要在其中运行进程的窗口样式。 A ProcessWindowStyle enumeration value indicating how the window appears when the process runs. Valid values include Normal, Maximized, Minimized or Hidden. For more information, see ProcessWindowStyle Enumeration in the .NET Framework Class Library. 获取或设置一个目录,可在其中找到在 属性中指定的文件。 A String that contains the directory in which the files specified in the property can be found.