共用方式為


GetWrapper 方法 (IDTSConnectionManager100)

Gets the managed ConnectionManager object that corresponds to the specified native IDTSConnectionManager100 object.

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public Shared Function GetWrapper ( _
    connMgr As IDTSConnectionManager100 _
) As ConnectionManager
'用途
Dim connMgr As IDTSConnectionManager100
Dim returnValue As ConnectionManager

returnValue = DtsConvert.GetWrapper(connMgr)
public static ConnectionManager GetWrapper(
    IDTSConnectionManager100 connMgr
)
public:
static ConnectionManager^ GetWrapper(
    IDTSConnectionManager100^ connMgr
)
static member GetWrapper : 
        connMgr:IDTSConnectionManager100 -> ConnectionManager 
public static function GetWrapper(
    connMgr : IDTSConnectionManager100
) : ConnectionManager

傳回值

型別:Microsoft.SqlServer.Dts.Runtime. . :: . .ConnectionManager
The managed ConnectionManager object that corresponds to the specified native IDTSConnectionManager100 object

備註

Use the DtsConvert..::..GetWrapper(IDTSConnectionManager100) method instead of the obsolete ToConnectionManager method.