DtsContainer Constructor
Initializes a new instance of the DtsContainer class. This constructor is not CLS-compliant. The CLS-compliant alternative is .
Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
Syntax
'Deklaracja
<CLSCompliantAttribute(False)> _
Protected Sub New ( _
DtsContainer As IDTSContainer100 _
)
[CLSCompliantAttribute(false)]
protected DtsContainer (
IDTSContainer100 DtsContainer
)
[CLSCompliantAttribute(false)]
protected:
DtsContainer (
IDTSContainer100^ DtsContainer
)
/** @attribute CLSCompliantAttribute(false) */
protected DtsContainer (
IDTSContainer100 DtsContainer
)
CLSCompliantAttribute(false)
protected function DtsContainer (
DtsContainer : IDTSContainer100
)
Parameters
- DtsContainer
The container to be created.
Remarks
This constructor is called by derived class constructors to initialize state in this type.
Example
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.
}
}
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 DtsContainer
' here through the Package object.
End Sub
End Namespace
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
See Also