Поделиться через


Конструктор DtsConvert

Initializes a new instance of the DtsConvert class.

Пространство имен:  Microsoft.SqlServer.Dts.Runtime
Сборка:  Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)

Синтаксис

'Декларация
Public Sub New
'Применение

Dim instance As New DtsConvert()
public DtsConvert()
public:
DtsConvert()
new : unit -> DtsConvert
public function DtsConvert()

Примеры

The following code example shows two ways to create the DtsConvert object. The first way, shown in comments, is to simply create the class. The second way is creating it inline, which is the most common way.

//DtsConvert convert = new DtsConvert();
ConnectionManager cm = Microsoft.SqlServer.Dts.Runtime.DtsConvert.ToConnectionManager(ComponentMetaData.RuntimeConnectionCollection[0].ConnectionManager);
' Dim convert As DtsConvert =  New DtsConvert() 
Dim cm As ConnectionManager =  Microsoft.SqlServer.Dts.Runtime.DtsConvert.ToConnectionManager(ComponentMetaData.RuntimeConnectionCollection(0).ConnectionManager)