다음을 통해 공유


CManagedComponentWrapperClass 클래스

Represents the design-time instance of a data flow component.

네임스페이스:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
어셈블리:  Microsoft.SqlServer.DTSPipelineWrap.dll의 Microsoft.SqlServer.DTSPipelineWrap

구문

‘선언
<GuidAttribute("2E42D45B-F83C-400F-8D77-61DDE6A7DF29")> _
<ClassInterfaceAttribute()> _
Public Class CManagedComponentWrapperClass _
    Implements IDTSDesigntimeComponent100, CManagedComponentWrapper, IDTSRuntimeComponent100
‘사용 방법
Dim instance As CManagedComponentWrapperClass
[GuidAttribute("2E42D45B-F83C-400F-8D77-61DDE6A7DF29")]
[ClassInterfaceAttribute()]
public class CManagedComponentWrapperClass : IDTSDesigntimeComponent100, 
    CManagedComponentWrapper, IDTSRuntimeComponent100
[GuidAttribute(L"2E42D45B-F83C-400F-8D77-61DDE6A7DF29")]
[ClassInterfaceAttribute()]
public ref class CManagedComponentWrapperClass : IDTSDesigntimeComponent100, 
    CManagedComponentWrapper, IDTSRuntimeComponent100
[<GuidAttribute("2E42D45B-F83C-400F-8D77-61DDE6A7DF29")>]
[<ClassInterfaceAttribute()>]
type CManagedComponentWrapperClass =  
    class
        interface IDTSDesigntimeComponent100
        interface CManagedComponentWrapper
        interface IDTSRuntimeComponent100
    end
public class CManagedComponentWrapperClass implements IDTSDesigntimeComponent100, CManagedComponentWrapper, IDTSRuntimeComponent100

주의

The CManagedComponentWrapperClass represents the design-time instance of a data flow component and is the object that is used when programmatically modifying a component in a data flow task. The methods of this class are defined by the IDTSDesigntimeComponent100 interface and are used to modify the properties and collections component. The CManagedComponentWrapper interface is returned when the Instantiate method of the IDTSComponentMetaData100 interface of the component is called. This interface can be cast to an instance of the CManagedComponentWrapperClass but there are no advantages to doing this Therefore, typically this class is not used.

예제

The following code example adds a component to a data flow task and retrieves an instance of the CManagedComponentWrapper interface by calling the Instantiate method.

Package p = new Package();
MainPipe mp = ((TaskHost)p.Executables.Add("SSIS.Pipeline.2")).InnerObject as MainPipe;

IDTSComponentMetaData100 md = mp.ComponentMetaDataCollection.New();
md.ComponentClassID = "DTSAdapter.OleDbSource";

CManagedComponentWrapper wrp = md.Instantiate();

상속 계층 구조

System. . :: . .Object
  Microsoft.SqlServer.Dts.Pipeline.Wrapper..::..CManagedComponentWrapperClass

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.