Project.OpenProject Método (Stream, String, IDTSEvents)
Opens a password protected project from an I/O stream and specifies an event listener to receive events.
Espacio de nombres: Microsoft.SqlServer.Dts.Runtime
Ensamblado: Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)
Sintaxis
'Declaración
Public Shared Function OpenProject ( _
projectStream As Stream, _
projectPassword As String, _
events As IDTSEvents _
) As Project
'Uso
Dim projectStream As Stream
Dim projectPassword As String
Dim events As IDTSEvents
Dim returnValue As Project
returnValue = Project.OpenProject(projectStream, _
projectPassword, events)
public static Project OpenProject(
Stream projectStream,
string projectPassword,
IDTSEvents events
)
public:
static Project^ OpenProject(
Stream^ projectStream,
String^ projectPassword,
IDTSEvents^ events
)
static member OpenProject :
projectStream:Stream *
projectPassword:string *
events:IDTSEvents -> Project
public static function OpenProject(
projectStream : Stream,
projectPassword : String,
events : IDTSEvents
) : Project
Parámetros
- projectStream
Tipo: System.IO.Stream
The I/O stream on which to open the project.
- projectPassword
Tipo: System.String
The password used in the project.
- events
Tipo: Microsoft.SqlServer.Dts.Runtime.IDTSEvents
An IDTSEvents interface to receive events.
Valor devuelto
Tipo: Microsoft.SqlServer.Dts.Runtime.Project
An opened project.