Méthode Project.OpenProject (String, IDTSEvents)
Opens an existing project in the specified file.
Espace de noms : Microsoft.SqlServer.Dts.Runtime
Assembly : Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)
Syntaxe
'Déclaration
Public Shared Function OpenProject ( _
projectFileName As String, _
events As IDTSEvents _
) As Project
'Utilisation
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
Paramètres
- 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.
Valeur de retour
Type : Microsoft.SqlServer.Dts.Runtime.Project
An opened project.