CManagedComponentWrapper 인터페이스

정의

컴포넌트의 속성과 열 컬렉션을 구성합니다.

public interface class CManagedComponentWrapper : Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("B7EBC995-699A-4067-A34C-40FAF745C987")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("E1ACC72B-14CE-4A91-B45F-E87773C1ABB5")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("1C0F2743-58D4-4663-9BC0-06B4D19B51A7")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("B7EBC995-699A-4067-A34C-40FAF745C987")>]
type CManagedComponentWrapper = interface
    interface IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("E1ACC72B-14CE-4A91-B45F-E87773C1ABB5")>]
type CManagedComponentWrapper = interface
    interface IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("1C0F2743-58D4-4663-9BC0-06B4D19B51A7")>]
type CManagedComponentWrapper = interface
    interface IDTSDesigntimeComponent100
Public Interface CManagedComponentWrapper
Implements IDTSDesigntimeComponent100
파생
특성
구현

예제

다음 코드 예시는 데이터 플로우 작업에 컴포넌트를 프로그래밍적으로 추가하고 디자인 타임 인터페이스 인스턴스를 생성하는 방법을 보여줍니다.

using System;  
using Microsoft.SqlServer.Dts.Runtime;  
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;  

namespace Microsoft.Samples.SqlServer.Dts  
{  
    class CreateComponent  
    {  
         [STAThread]  
        static void Main(string[] args)  
        {  
            // Create the package.  
            Package p = new Package();  

            // Add the data flow task to the package.  
            MainPipe dataFlowTask = ((TaskHost)p.Executables.Add("DTS.Pipeline.1")).InnerObject as MainPipe;  

            if (dataFlowTask != null)  
            {  
                // Add a component to the data flow task.  
                IDTSComponentMetaData100 metaData = dataFlowTask.ComponentMetaDataCollection.New();  

                // Set the class id of the component.  
                metaData.ComponentClassID = "";  

                // Create an instance of the component.  
                CManagedComponentWrapper wrapper = metaData.Instantiate();  

                // Initialize the component by calling ProvideComponentProperties.  
                wrapper.ProvideComponentProperties();  
            }  
        }  
    }  
}  

설명

CManagedComponentWrapper 데이터 흐름 구성 요소의 설계 시 수정에 사용되는 인터페이스 IDTSDesigntimeComponent100 입니다. CManagedComponentWrapper 설계 시 데이터 흐름 구성 요소의 속성과 열 집합을 구성하는 데 사용됩니다. 컴포넌트의 메타데이터를 직접 수정할 수는 있지만, 이는 컴포넌트가 메타데이터 수정 검증 능력을 우회하는 것을 피해야 합니다. 의 CManagedComponentWrapper 인스턴스는 컴포넌트 IDTSComponentMetaData100 인터페이스의 메서드를 호출 Instantiate 하여 생성됩니다.

인터페이스에서 정의된 메서드와 속성은 와 CManagedComponentWrapperClassIDTSDesigntimeComponent100 타입 모두에서 확인할 수 있습니다.

메서드

Name Description
AcquireConnections(Object)

연결 관리자와의 연결을 설정합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
DeleteExternalMetadataColumn(Int32, Int32)

지정된 인덱스의 외부 메타데이터 열을 외부 메타데이터 열에서 삭제합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
DeleteInput(Int32)

컬렉션에서 IDTSInputCollection100 객체를 IDTSInput100 삭제합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
DeleteOutput(Int32)

컬렉션에서 IDTSOutputCollection100 객체를 IDTSOutput100 삭제합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
DeleteOutputColumn(Int32, Int32)

컬렉션에서 IDTSOutputColumnCollection100 객체를 IDTSOutputColumn100 삭제합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
DescribeRedirectedErrorCode(Int32)

지정된 오류 코드의 설명을 반환합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
GetEnumerationCollection(String)

컴포넌트의 반환 IDTSFriendlyEnumCollection100 .

(다음에서 상속됨 IDTSDesigntimeComponent100)
InsertExternalMetadataColumnAt(Int32, Int32, String, String)

지정된 인덱스의 외부 메타데이터 열에 새로운 외부 메타데이터 열을 삽입합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
InsertInput(DTSInsertPlacement, Int32)

IDTSInput100 개체를 IDTSInputCollection100추가합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
InsertOutput(DTSInsertPlacement, Int32)

IDTSOutput100 개체를 추가합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
InsertOutputColumnAt(Int32, Int32, String, String)

IDTSOutputColumn100 객체를 생성하여 IDTSOutputColumnCollection100.

(다음에서 상속됨 IDTSDesigntimeComponent100)
MapInputColumn(Int32, Int32, Int32)

입력 열과 대응하는 외부 메타데이터 열 간의 관계를 설정합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
MapOutputColumn(Int32, Int32, Int32, Boolean)

출력 열과 대응하는 외부 메타데이터 열 간의 관계를 설정합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
OnDeletingInputColumn(Int32, Int32)

. 에서 객체IDTSInputColumnCollection100IDTSInputColumn100 삭제할 때 호출됩니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
OnInputPathAttached(Int32)

객체가 IDTSInput100 인터페이스를 통해 IDTSPath100 다른 컴포넌트와 연결될 때 호출됩니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
OnInputPathDetached(Int32)

지정된 IDTSInput100 객체를 포함하는 객체가 IDTSPath100 삭제될 때 호출됩니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
OnOutputPathAttached(Int32)

컴포넌트의 객체가 IDTSOutput100 하위 컴포넌트에 부착될 때 호출됩니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
ProvideComponentProperties()

컴포넌트가 처음 데이터 플로우 작업에 추가될 때 의 를 ComponentMetaData 초기화합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
ReinitializeMetaData()

설계 시 검증 중에 발견된 오류로 인해 컴포넌트가 반환되는 VS_NEEDSNEWMETADATA것을 수정합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
ReleaseConnections()

설계 시점이나 실행 시 중 생성된 AcquireConnections(Object) 연결을 해제합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
SetComponentProperty(String, Object)

컴포넌트의 값 IDTSCustomProperty100 에 값을 할당합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
SetExternalMetadataColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)

지정된 외부 메타데이터 열의 데이터 타입 속성을 설정합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
SetExternalMetadataColumnProperty(Int32, Int32, String, Object)

외부 메타데이터 열의 개별 속성을 설정합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
SetInputColumnProperty(Int32, Int32, String, Object)

객체의 IDTSInputColumn100 값을 IDTSCustomProperty100 할당합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
SetInputProperty(Int32, String, Object)

객체의 IDTSInput100 값을 IDTSCustomProperty100 할당합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
SetOutputColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)

객체의 IDTSOutputColumn100 데이터 타입 속성을 설정합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
SetOutputColumnProperty(Int32, Int32, String, Object)

객체에 대해 IDTSOutputColumn100 값 를 IDTSCustomProperty100 설정합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
SetOutputProperty(Int32, String, Object)

객체에 대해 IDTSOutput100 값 를 IDTSCustomProperty100 설정합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)
SetUsageType(Int32, IDTSVirtualInput100, Int32, DTSUsageType)

컴포넌트의 객체를 생성 IDTSInputColumn100 하고 열의 속성을 설정합니다UsageType.IDTSInputColumnCollection100

(다음에서 상속됨 IDTSDesigntimeComponent100)
Validate()

구성 요소가 올바르게 구성되었는지 확인합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)

적용 대상