Application.RemoveFromDtsServer(String, String) 方法

定义

从指定的服务器中删除包。

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

参数

sPackagePath
String

包的完全限定路径。

sServerName
String

包所在的服务器的名称。

示例

The following code example removes a package named myp1Package.

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

注解

若要验证包是否不再存在,可以打开 Integration Services 服务,选择 文件系统,然后单击“ 刷新”。 不再列出包。

适用于