Поделиться через


Метод Application.GetPackageInfos2

Этот API-интерфейс поддерживает инфраструктуру SQL Server 2012 и не предназначен для использования непосредственно из кода.

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.

Пространство имен:  Microsoft.SqlServer.Dts.Runtime
Сборка:  Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)

Синтаксис

'Декларация
Public Function GetPackageInfos2 ( _
    strFolder As String, _
    connectionObject As Object _
) As PackageInfos
'Применение
Dim instance As Application 
Dim strFolder As String 
Dim connectionObject As Object 
Dim returnValue As PackageInfos 

returnValue = instance.GetPackageInfos2(strFolder, _
    connectionObject)
public PackageInfos GetPackageInfos2(
    string strFolder,
    Object connectionObject
)
public:
PackageInfos^ GetPackageInfos2(
    String^ strFolder, 
    Object^ connectionObject
)
member GetPackageInfos2 : 
        strFolder:string * 
        connectionObject:Object -> PackageInfos
public function GetPackageInfos2(
    strFolder : String, 
    connectionObject : Object
) : PackageInfos

Параметры

  • strFolder
    Тип: System.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 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 method.

Возвращаемое значение

Тип: Microsoft.SqlServer.Dts.Runtime.PackageInfos
The collection that contains the packages.

См. также

Справочник

Application Класс

Пространство имен Microsoft.SqlServer.Dts.Runtime