Project.OpenProject Method (String, IDTSEvents)
Opens an existing project in the specified file.
Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)
Syntax
'Declaration
Public Shared Function OpenProject ( _
projectFileName As String, _
events As IDTSEvents _
) As Project
'Usage
Dim projectFileName As String
Dim events As IDTSEvents
Dim returnValue As Project
returnValue = Project.OpenProject(projectFileName, _
events)
public static Project OpenProject(
string projectFileName,
IDTSEvents events
)
public:
static Project^ OpenProject(
String^ projectFileName,
IDTSEvents^ events
)
static member OpenProject :
projectFileName:string *
events:IDTSEvents -> Project
public static function OpenProject(
projectFileName : String,
events : IDTSEvents
) : Project
Parameters
- projectFileName
Type: System.String
The project file path.
- events
Type: Microsoft.SqlServer.Dts.Runtime.IDTSEvents
An object that implements the IDTSEvents interface for firing events (errors, warnings, and so on) during opening.
Return Value
Type: Microsoft.SqlServer.Dts.Runtime.Project
An opened project.