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 하여 만들어집니다.

인터페이스에서 정의한 메서드와 속성은 형식과 IDTSDesigntimeComponent100 형식 모두 CManagedComponentWrapperClass 에 표시됩니다.

메서드

AcquireConnections(Object)

연결 관리자에 대한 연결을 설정합니다.

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

외부 메타데이터 열의 컬렉션에서 지정된 인덱스 위치에 있는 외부 메타데이터 열을 삭제합니다.

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

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

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

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

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

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

(다음에서 상속됨 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)

IDTSInputColumn100에서 IDTSInputColumnCollection100 개체를 삭제할 때 호출됩니다.

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

IDTSInput100 인터페이스를 통해 IDTSPath100 개체가 다른 구성 요소에 연결될 때 호출됩니다.

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

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

(다음에서 상속됨 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)

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

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

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

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

IDTSOutputColumn100 개체의 데이터 형식 속성을 설정합니다.

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

IDTSCustomProperty100 개체에 대한 IDTSOutputColumn100의 값을 설정합니다.

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

IDTSCustomProperty100 개체에 대한 IDTSOutput100의 값을 설정합니다.

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

구성 요소의 IDTSInputColumn100IDTSInputColumnCollection100 개체를 만들고 해당 열의 UsageType 속성을 설정합니다.

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

구성 요소가 제대로 구성되었는지 확인합니다.

(다음에서 상속됨 IDTSDesigntimeComponent100)

적용 대상