次の方法で共有


EmbedPackage メソッド (String, String, String, Int32, Boolean, String, String, String, String)

Exec80PackageTask 内にパッケージを埋め込みます。

名前空間:  Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask
アセンブリ:  Microsoft.SqlServer.Exec80PackageTask (Microsoft.SqlServer.Exec80PackageTask.dll)

構文

'宣言
Public Function EmbedPackage ( _
    Filename As String, _
    sourceUser As String, _
    sourcePassword As String, _
    SourceType As Integer, _
    bUseTrustedConnection As Boolean, _
    PackageName As String, _
    PackagePassword As String, _
    PackageID As String, _
    PackageVersionGUID As String _
) As Package
'使用
Dim instance As Exec80PackageTask
Dim Filename As String
Dim sourceUser As String
Dim sourcePassword As String
Dim SourceType As Integer
Dim bUseTrustedConnection As Boolean
Dim PackageName As String
Dim PackagePassword As String
Dim PackageID As String
Dim PackageVersionGUID As String
Dim returnValue As Package

returnValue = instance.EmbedPackage(Filename, _
    sourceUser, sourcePassword, SourceType, _
    bUseTrustedConnection, PackageName, _
    PackagePassword, PackageID, PackageVersionGUID)
public Package EmbedPackage(
    string Filename,
    string sourceUser,
    string sourcePassword,
    int SourceType,
    bool bUseTrustedConnection,
    string PackageName,
    string PackagePassword,
    string PackageID,
    string PackageVersionGUID
)
public:
Package^ EmbedPackage(
    String^ Filename, 
    String^ sourceUser, 
    String^ sourcePassword, 
    int SourceType, 
    bool bUseTrustedConnection, 
    String^ PackageName, 
    String^ PackagePassword, 
    String^ PackageID, 
    String^ PackageVersionGUID
)
member EmbedPackage : 
        Filename:string * 
        sourceUser:string * 
        sourcePassword:string * 
        SourceType:int * 
        bUseTrustedConnection:bool * 
        PackageName:string * 
        PackagePassword:string * 
        PackageID:string * 
        PackageVersionGUID:string -> Package 
public function EmbedPackage(
    Filename : String, 
    sourceUser : String, 
    sourcePassword : String, 
    SourceType : int, 
    bUseTrustedConnection : boolean, 
    PackageName : String, 
    PackagePassword : String, 
    PackageID : String, 
    PackageVersionGUID : String
) : Package

パラメーター

  • sourcePassword
    型: System. . :: . .String
    SQL Server 2000 DTS パッケージがパスワードで保護されている場合は、パスワードを指定します。
  • bUseTrustedConnection
    型: System. . :: . .Boolean
    true は、Windows 認証を使用することを示します。
  • PackagePassword
    型: System. . :: . .String
    パッケージにパスワードが設定されている場合のパスワードです。

戻り値

型: Package
Package オブジェクトです。