Share via


Application.RemoveFolderFromDtsServer(String, String) Method

Definition

Removes the specified folder from the specified server.

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)

Parameters

sFolderName
String

The name of the folder to remove.

sServerName
String

The name of the server where the folder is located.

Examples

The following code example removes a folder, named myfolder, from the file system.

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  

Applies to