Метод Project.OpenProject (String, Project.AccessMode, String, IDTSEvents)
Opens a password protected project in the specified path and specifies an event listener to receive events.
Пространство имен: Microsoft.SqlServer.Dts.Runtime
Сборка: Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)
Синтаксис
'Декларация
Public Shared Function OpenProject ( _
projectFileName As String, _
accessMode As Project.AccessMode, _
projectPassword As String, _
events As IDTSEvents _
) As Project
'Применение
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
Параметры
- projectFileName
Тип: System.String
The project file path.
- accessMode
Тип: Microsoft.SqlServer.Dts.Runtime.Project.AccessMode
The access in which to open the project.
- projectPassword
Тип: System.String
The password used in the project.
- events
Тип: Microsoft.SqlServer.Dts.Runtime.IDTSEvents
An IDTSEvents interface to receive events.
Возвращаемое значение
Тип: Microsoft.SqlServer.Dts.Runtime.Project
An opened project.