Share via


Project.OpenProject Method (String, Project.AccessMode, String, IDTSEvents)

Opens a password protected project in the specified path and specifies an event listener to receive events.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Syntax

'Declaration
Public Shared Function OpenProject ( _
    projectFileName As String, _
    accessMode As Project.AccessMode, _
    projectPassword As String, _
    events As IDTSEvents _
) As Project
'Usage
Dim projectFileName As String 
Dim accessMode As Project.AccessMode 
Dim projectPassword As String 
Dim events As IDTSEvents 
Dim returnValue As Project 

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

Parameters

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

Return Value

Type: Microsoft.SqlServer.Dts.Runtime.Project
An opened project.

See Also

Reference

Project Class

OpenProject Overload

Microsoft.SqlServer.Dts.Runtime Namespace