共用方式為


Project.OpenProject 方法 (String, String)

Opens an existing project with password in the specified file.

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

語法

'宣告
Public Shared Function OpenProject ( _
    projectFileName As String, _
    projectPassword As String _
) As Project
'用途
Dim projectFileName As String 
Dim projectPassword As String 
Dim returnValue As Project 

returnValue = Project.OpenProject(projectFileName, _
    projectPassword)
public static Project OpenProject(
    string projectFileName,
    string projectPassword
)
public:
static Project^ OpenProject(
    String^ projectFileName, 
    String^ projectPassword
)
static member OpenProject : 
        projectFileName:string * 
        projectPassword:string -> Project
public static function OpenProject(
    projectFileName : String, 
    projectPassword : String
) : Project

參數

  • projectPassword
    型別:System.String
    The password used in the project.

傳回值

型別:Microsoft.SqlServer.Dts.Runtime.Project
An opened project.

請參閱

參考

Project 類別

OpenProject 多載

Microsoft.SqlServer.Dts.Runtime 命名空間