共用方式為


ApplicationClass.GetDtsServerPackageInfos 方法

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

Gets a PackageInfos collection that contains the packages stored in the SSIS Package Store on an instance of SQL Server, within the specified folder.

命名空間:  Microsoft.SqlServer.Dts.Runtime.Wrapper
組件:  Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)

語法

'宣告
Public Overridable Function GetDtsServerPackageInfos ( _
    bstrPackageFolder As String, _
    bstrServerName As String _
) As IDTSPackageInfos100
'用途
Dim instance As ApplicationClass 
Dim bstrPackageFolder As String 
Dim bstrServerName As String 
Dim returnValue As IDTSPackageInfos100 

returnValue = instance.GetDtsServerPackageInfos(bstrPackageFolder, _
    bstrServerName)
public virtual IDTSPackageInfos100 GetDtsServerPackageInfos(
    string bstrPackageFolder,
    string bstrServerName
)
public:
virtual IDTSPackageInfos100^ GetDtsServerPackageInfos(
    [InAttribute] String^ bstrPackageFolder, 
    [InAttribute] String^ bstrServerName
)
abstract GetDtsServerPackageInfos : 
        bstrPackageFolder:string * 
        bstrServerName:string -> IDTSPackageInfos100  
override GetDtsServerPackageInfos : 
        bstrPackageFolder:string * 
        bstrServerName:string -> IDTSPackageInfos100
public function GetDtsServerPackageInfos(
    bstrPackageFolder : String, 
    bstrServerName : String
) : IDTSPackageInfos100

參數

  • bstrPackageFolder
    型別:System.String
    The folder under Stored Packages that contains the packages.
  • bstrServerName
    型別:System.String
    The name of the SQL Server instance where the packages reside.

傳回值

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

實作

IDTSApplication100.GetDtsServerPackageInfos(String, String)

請參閱

參考

ApplicationClass 類別

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