ToConnectionManager 方法
注意:此 API 已經過時。
*** Member obsolete; use the GetWrapper(IDTSConnectionManager100) method instead. *** Converts a native IDTSConnectionManager100 object to a managed ConnectionManager object.
命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)
語法
'宣告
<ObsoleteAttribute("The ToXXXX() methods have been replaced with the GetWrapper() method.")> _
Public Shared Function ToConnectionManager ( _
connMgr As IDTSConnectionManager100 _
) As ConnectionManager
'用途
Dim connMgr As IDTSConnectionManager100
Dim returnValue As ConnectionManager
returnValue = DtsConvert.ToConnectionManager(connMgr)
[ObsoleteAttribute("The ToXXXX() methods have been replaced with the GetWrapper() method.")]
public static ConnectionManager ToConnectionManager(
IDTSConnectionManager100 connMgr
)
[ObsoleteAttribute(L"The ToXXXX() methods have been replaced with the GetWrapper() method.")]
public:
static ConnectionManager^ ToConnectionManager(
IDTSConnectionManager100^ connMgr
)
[<ObsoleteAttribute("The ToXXXX() methods have been replaced with the GetWrapper() method.")>]
static member ToConnectionManager :
connMgr:IDTSConnectionManager100 -> ConnectionManager
public static function ToConnectionManager(
connMgr : IDTSConnectionManager100
) : ConnectionManager
參數
- connMgr
型別:Microsoft.SqlServer.Dts.Runtime.Wrapper. . :: . .IDTSConnectionManager100
The native IDTSConnectionManager100 object.
傳回值
型別:Microsoft.SqlServer.Dts.Runtime. . :: . .ConnectionManager
The managed ConnectionManager object.