Package 构造函数

定义

初始化 Package 类的新实例。

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

示例

下面的代码示例创建新的 Package

using System;  
using Microsoft.SqlServer.Dts.Runtime;  
namespace Microsoft.Samples.SqlServer.Dts  
{  
    public static void Main(string []args)  
    {  
        Package p = new Package();  
        //  
        // Access methods and properties of the package here.  
        //  
    }  
}  
Imports System  
Imports Microsoft.SqlServer.Dts.Runtime  
Namespace Microsoft.Samples.SqlServer.Dts  
    Public Shared  Sub Main(ByValstring()args)  
        Dim p As Package =  New Package()   
        '  
        ' Access methods and properties of the package here.  
        '  
    End Sub  
End Namespace  

适用于