共用方式為


IDTSApplication100.GetPackageInfos 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Gets a IDTSPackageInfos100 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 中)

語法

'宣告
Function GetPackageInfos ( _
    bstrPackageFolder As String, _
    bstrServerName As String, _
    bstrServerUserName As String, _
    bstrServerPassword As String _
) As IDTSPackageInfos100
'用途
Dim instance As IDTSApplication100 
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)
IDTSPackageInfos100 GetPackageInfos(
    string bstrPackageFolder,
    string bstrServerName,
    string bstrServerUserName,
    string bstrServerPassword
)
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
function GetPackageInfos(
    bstrPackageFolder : String, 
    bstrServerName : String, 
    bstrServerUserName : String, 
    bstrServerPassword : String
) : IDTSPackageInfos100

參數

  • bstrPackageFolder
    型別:System.String
    The logical folder that contains the packages you want to enumerate.
  • 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, if you need to log in to SQL Server using standard authentication. If you are using Windows Authentication, use nullnull 參考 (在 Visual Basic 中為 Nothing).
  • bstrServerPassword
    型別:System.String
    The password of the user account, if you need to log in to SQL Server using standard authentication. If you are using Windows Authentication, use nullnull 參考 (在 Visual Basic 中為 Nothing).

傳回值

型別:Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackageInfos100
A IDTSPackageInfos100 collection that contains IDTSPackageInfo100 objects.

請參閱

參考

IDTSApplication100 介面

Microsoft.SqlServer.Dts.Runtime.Wrapper 命名空間