Application.RemoveFolderFromDtsServer(String, String) 方法

定义

从指定的服务器中删除指定的文件夹。

public:
 void RemoveFolderFromDtsServer(System::String ^ sFolderName, System::String ^ sServerName);
public void RemoveFolderFromDtsServer (string sFolderName, string sServerName);
member this.RemoveFolderFromDtsServer : string * string -> unit
Public Sub RemoveFolderFromDtsServer (sFolderName As String, sServerName As String)

参数

sFolderName
String

要删除的文件夹的名称。

sServerName
String

文件夹所在的服务器的名称。

示例

下面的代码示例从文件系统中删除名为 myfolder的文件夹。

static void Main(string[] args)  
        {  
            Application app = new Application();  
            app.RemoveFolderFromDtsServer(@"File System\myFolder", "yourserver);  
        }  
Shared  Sub Main(ByVal args() As String)  
            Dim app As Application =  New Application()   
            app.RemoveFolderFromDtsServer("File System\myFolder", "yourserver)  
End Sub  

适用于