Project.OpenProject Método (String, IDTSEvents)
Opens an existing project in the specified file.
Espacio de nombres: Microsoft.SqlServer.Dts.Runtime
Ensamblado: Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)
Sintaxis
'Declaración
Public Shared Function OpenProject ( _
projectFileName As String, _
events As IDTSEvents _
) As Project
'Uso
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
Parámetros
- projectFileName
Tipo: System.String
The project file path.
- events
Tipo: Microsoft.SqlServer.Dts.Runtime.IDTSEvents
An object that implements the IDTSEvents interface for firing events (errors, warnings, and so on) during opening.
Valor devuelto
Tipo: Microsoft.SqlServer.Dts.Runtime.Project
An opened project.