Méthode Project.OpenProject (String, Project.AccessMode, String, IDTSEvents)
Opens a password protected project in the specified path and specifies an event listener to receive events.
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, _
accessMode As Project.AccessMode, _
projectPassword As String, _
events As IDTSEvents _
) As Project
'Utilisation
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
Paramètres
- projectFileName
Type : System.String
The project file path.
- accessMode
Type : Microsoft.SqlServer.Dts.Runtime.Project.AccessMode
The access in which to open the project.
- projectPassword
Type : System.String
The password used in the project.
- events
Type : Microsoft.SqlServer.Dts.Runtime.IDTSEvents
An IDTSEvents interface to receive events.
Valeur de retour
Type : Microsoft.SqlServer.Dts.Runtime.Project
An opened project.