共用方式為


Project.OpenProject 方法 (Stream, IDTSEvents)

Opens a 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, _
    events As IDTSEvents _
) As Project
'用途
Dim projectStream As Stream 
Dim events As IDTSEvents 
Dim returnValue As Project 

returnValue = Project.OpenProject(projectStream, _
    events)
public static Project OpenProject(
    Stream projectStream,
    IDTSEvents events
)
public:
static Project^ OpenProject(
    Stream^ projectStream, 
    IDTSEvents^ events
)
static member OpenProject : 
        projectStream:Stream * 
        events:IDTSEvents -> Project
public static function OpenProject(
    projectStream : Stream, 
    events : IDTSEvents
) : Project

參數

  • projectStream
    型別:System.IO.Stream
    The I/O stream on which to open the project.

傳回值

型別:Microsoft.SqlServer.Dts.Runtime.Project
An opened project.

請參閱

參考

Project 類別

OpenProject 多載

Microsoft.SqlServer.Dts.Runtime 命名空間