Метод ApplicationClass.GetPackageInfos
Этот 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.Wrapper
Сборка: Microsoft.SqlServer.DTSRuntimeWrap (в Microsoft.SqlServer.DTSRuntimeWrap.dll)
Синтаксис
'Декларация
Public Overridable Function GetPackageInfos ( _
bstrPackageFolder As String, _
bstrServerName As String, _
bstrServerUserName As String, _
bstrServerPassword As String _
) As IDTSPackageInfos100
'Применение
Dim instance As ApplicationClass
Dim bstrPackageFolder As String
Dim bstrServerName As String
Dim bstrServerUserName As String
Dim bstrServerPassword As String
Dim returnValue As IDTSPackageInfos100
returnValue = instance.GetPackageInfos(bstrPackageFolder, _
bstrServerName, bstrServerUserName, _
bstrServerPassword)
public virtual IDTSPackageInfos100 GetPackageInfos(
string bstrPackageFolder,
string bstrServerName,
string bstrServerUserName,
string bstrServerPassword
)
public:
virtual IDTSPackageInfos100^ GetPackageInfos(
[InAttribute] String^ bstrPackageFolder,
[InAttribute] String^ bstrServerName,
[InAttribute] String^ bstrServerUserName,
[InAttribute] String^ bstrServerPassword
)
abstract GetPackageInfos :
bstrPackageFolder:string *
bstrServerName:string *
bstrServerUserName:string *
bstrServerPassword:string -> IDTSPackageInfos100
override GetPackageInfos :
bstrPackageFolder:string *
bstrServerName:string *
bstrServerUserName:string *
bstrServerPassword:string -> IDTSPackageInfos100
public function GetPackageInfos(
bstrPackageFolder : String,
bstrServerName : String,
bstrServerUserName : String,
bstrServerPassword : String
) : IDTSPackageInfos100
Параметры
- bstrPackageFolder
Тип: System.String
The logical folder that contains the packages.
- bstrServerName
Тип: System.String
The name of the SQL Server instance where the packages reside.
- bstrServerUserName
Тип: System.String
The account name used to log on to the instance of SQL Server.
- bstrServerPassword
Тип: System.String
The password of the user account.
Возвращаемое значение
Тип: Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackageInfos100
A PackageInfos collection.
Реализует
IDTSApplication100.GetPackageInfos(String, String, String, String)