Метод Project.OpenProject (Stream, Project.AccessMode, String, IDTSEvents)
Opens a password protected project from an I/O stream and specifies an event listener to receive events.
Пространство имен: Microsoft.SqlServer.Dts.Runtime
Сборка: Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)
Синтаксис
'Декларация
Public Shared Function OpenProject ( _
projectStream As Stream, _
accessMode As Project.AccessMode, _
projectPassword As String, _
events As IDTSEvents _
) As Project
'Применение
Dim projectStream As Stream
Dim accessMode As Project.AccessMode
Dim projectPassword As String
Dim events As IDTSEvents
Dim returnValue As Project
returnValue = Project.OpenProject(projectStream, _
accessMode, projectPassword, events)
public static Project OpenProject(
Stream projectStream,
Project.AccessMode accessMode,
string projectPassword,
IDTSEvents events
)
public:
static Project^ OpenProject(
Stream^ projectStream,
Project.AccessMode accessMode,
String^ projectPassword,
IDTSEvents^ events
)
static member OpenProject :
projectStream:Stream *
accessMode:Project.AccessMode *
projectPassword:string *
events:IDTSEvents -> Project
public static function OpenProject(
projectStream : Stream,
accessMode : Project.AccessMode,
projectPassword : String,
events : IDTSEvents
) : Project
Параметры
- projectStream
Тип: System.IO.Stream
The I/O stream on which to open the project.
- 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.