다음을 통해 공유


DtsContainer 생성자

Initializes a new instance of the DtsContainer class.

이 API는 CLS와 호환되지 않습니다. CLS 규격 대체 항목은 입니다.

네임스페이스:  Microsoft.SqlServer.Dts.Runtime
어셈블리:  Microsoft.SqlServer.ManagedDTS.dll의 Microsoft.SqlServer.ManagedDTS

구문

‘선언
<CLSCompliantAttribute(False)> _
Protected Sub New ( _
    DtsContainer As IDTSContainer100 _
)
‘사용 방법
Dim DtsContainer As IDTSContainer100

Dim instance As New DtsContainer(DtsContainer)
[CLSCompliantAttribute(false)]
protected DtsContainer(
    IDTSContainer100 DtsContainer
)
[CLSCompliantAttribute(false)]
protected:
DtsContainer(
    IDTSContainer100^ DtsContainer
)
[<CLSCompliantAttribute(false)>]
new : 
        DtsContainer:IDTSContainer100 -> DtsContainer
protected function DtsContainer(
    DtsContainer : IDTSContainer100
)

매개 변수

주의

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.
    }
}
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