DtsContainer(IDTSContainer100) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Initializes a new instance of the DtsContainer class.
protected:
DtsContainer(Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSContainer100 ^ DtsContainer);
[System.CLSCompliant(false)]
protected DtsContainer (Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100 DtsContainer);
[<System.CLSCompliant(false)>]
new Microsoft.SqlServer.Dts.Runtime.DtsContainer : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSContainer100 -> Microsoft.SqlServer.Dts.Runtime.DtsContainer
Protected Sub New (DtsContainer As IDTSContainer100)
Parameters
- DtsContainer
- IDTSContainer100
The container to be created.
- Attributes
Examples
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
Remarks
This constructor is called by derived class constructors to initialize state in this type.