Microsoft.SqlServer.FileSystemTask 命名空间包含使用文件系统任务管理文件系统所需的类和接口。 确定要对文件或目录设置的属性。 文件或目录可供存档。 文件或目录不可见。 文件或目录没有其他属性集。仅在单独使用时才有效。 文件或目录为只读。 文件或目录是操作系统文件。 指示要执行的文件系统操作。 将复制一个目录。 均必须设置。 将复制一个文件。 均必须设置。 将创建一个目录。 必须设置。 将删除一个目录。 必须设置。 将删除目录的内容。 必须设置。 将删除一个文件。 必须设置。 将移动一个目录。 均必须设置。 将移动一个文件。 均必须设置。 将重命名一个文件。 均必须设置。 将设置文件或目录的属性。 均必须设置。 对文件系统运行命令。无法继承此类。 初始化 类的新实例。 传递给该任务。此方法由运行时调用,在代码中未使用。 The breakpoint manager specific to this task. 运行任务。 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. 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 that implements the interface for raising events (errors, warnings, and so on) during persistence. An object that implements the interface. An . The collection used by the task. An object reference tracker. 此方法不能由应用程序代码调用。若要将保存为 .xml 的包加载到硬盘,请使用 方法。 The node containing the information to be loaded. An object that implements the interface for raising events (errors, warnings, and so on) during persistence. 暂停后恢复执行任务。由运行时引擎恢复任务或容器。 此方法不能由应用程序代码调用。若将包保存为 .xml,请使用 方法。 The XML document to which to save the information. 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. 获取或设置要应用于文件或目录的属性。 The to apply to the file or directory. 一个布尔值,该值指示某一任务是否应检查断点启用与否。 true if the task should check for enabled breakpoints; otherwise false. 获取或设置目标文件夹或文件。 A String that contains the connection manager or variable that contains the destination folder or file information. 返回该任务成功执行的操作的数目。此字段是只读的。 An Integer indicating the number of successful operations performed by the task. For files, it represents the number of files affected by the operation. If the operation affects only one directory, the number returned is 1. 获取或设置一个布尔值,该值指示 信息是否位于某一包变量中。 true if the information is found in a package variable; false if the destination is a FILE connection manager. 获取或设置一个 Boolean 值,该值指示 信息是否位于某一包变量中。 true if the information is found in a package variable; false if the source is a FILE connection manager. 获取或设置来自 枚举的一个值,该值确定要执行的操作的类型。 A value from the enumeration indicating the type of operation to perform. 获取或设置任务的名称。 The name of the operation. 获取或设置一个布尔值,该值指示该任务是否将覆盖目标文件。 true if the task will overwrite destination files; false otherwise. 获取或设置源文件或目录。如果 设置为 true,则获取或设置表示源文件或目录的包变量名称。 A String that contains the connection manager or variable that contains the source folder or file information. 获取或设置一个布尔值,该值指示在遇到断点时任务是否应挂起。遇到断点时,将由任务和容器的运行时引擎设置此值。 true if the task suspends when it encounters a breakpoint.