DtsConvert Constructor

Definition

初始化 DtsConvert 类的新实例。Initializes a new instance of the DtsConvert class.

public:
 DtsConvert();
public DtsConvert ();
Public Sub New ()

Examples

下面的代码示例演示了创建对象的两种方法 DtsConvertThe 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)  

Applies to