共用方式為


Application.GetPackageInfos2(String, Object) Method

Definition

Gets a PackageInfos collection that contains the packages stored in an instance of SQL Server, within the specified logical folder, by using the server name, user name, and password.

public:
 Microsoft::SqlServer::Dts::Runtime::PackageInfos ^ GetPackageInfos2(System::String ^ strFolder, System::Object ^ connectionObject);
public Microsoft.SqlServer.Dts.Runtime.PackageInfos GetPackageInfos2 (string strFolder, object connectionObject);
member this.GetPackageInfos2 : string * obj -> Microsoft.SqlServer.Dts.Runtime.PackageInfos
Public Function GetPackageInfos2 (strFolder As String, connectionObject As Object) As PackageInfos

Parameters

strFolder
String

The logical folder that contains the packages you want to enumerate. If you want package information from the File System folder in the SSIS Package Store, use the GetDtsServerPackageInfos(String, String) method. The logical folders in which packages are stored within MSDB can be created from the Stored Packages\MSDB node in Management Studio, by the dtutil.exe command prompt utility, or by the CreateFolderOnSqlServer(String, String, String, String, String) method.

connectionObject
Object

The connection object.

Returns

The collection that contains the packages.

Applies to