Export (0) Print
Expand All

DtsContainer Constructor

Initializes a new instance of the DtsContainer class.

This API is not CLS-compliant. The CLS-compliant alternative is .

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

[CLSCompliantAttribute(false)]
protected DtsContainer(
	IDTSContainer100 DtsContainer
)

Parameters

DtsContainer
Type: Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100
The container to be created.

This constructor is called by derived class constructors to initialize state in this type.

The Package class implements the DtsContainer through its inheritance of the EventsProvider. To create a class that inherits from DtsContainer, simply instantiate the class as usual. The following code example creates a new Package class.

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 DtsContainer
        // here through the Package object.
    }
}

Community Additions

ADD
Show:
© 2014 Microsoft