共用方式為


IDTSProject100.GetConfiguredPackageByName 方法

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

Gets the configured package by name.

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

語法

'宣告
Function GetConfiguredPackageByName ( _
    bstrPackageStreamName As String _
) As IDTSPackage100
'用途
Dim instance As IDTSProject100 
Dim bstrPackageStreamName As String 
Dim returnValue As IDTSPackage100 

returnValue = instance.GetConfiguredPackageByName(bstrPackageStreamName)
IDTSPackage100 GetConfiguredPackageByName(
    string bstrPackageStreamName
)
IDTSPackage100^ GetConfiguredPackageByName(
    [InAttribute] String^ bstrPackageStreamName
)
abstract GetConfiguredPackageByName : 
        bstrPackageStreamName:string -> IDTSPackage100
function GetConfiguredPackageByName(
    bstrPackageStreamName : String
) : IDTSPackage100

參數

  • bstrPackageStreamName
    型別:System.String
    The package stream name.

傳回值

型別:Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100
The returned package.

請參閱

參考

IDTSProject100 介面

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