IDTSDesigntimeComponent100 인터페이스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
C++와 COM으로 작성된 데이터 흐름 구성 요소의 설계 시 메서드를 정의합니다.
public interface class IDTSDesigntimeComponent100
[System.Runtime.InteropServices.Guid("B7EBC995-699A-4067-A34C-40FAF745C987")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface IDTSDesigntimeComponent100
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
[System.Runtime.InteropServices.Guid("E1ACC72B-14CE-4A91-B45F-E87773C1ABB5")]
public interface IDTSDesigntimeComponent100
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
[System.Runtime.InteropServices.Guid("1C0F2743-58D4-4663-9BC0-06B4D19B51A7")]
public interface IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.Guid("B7EBC995-699A-4067-A34C-40FAF745C987")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type IDTSDesigntimeComponent100 = interface
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
[<System.Runtime.InteropServices.Guid("E1ACC72B-14CE-4A91-B45F-E87773C1ABB5")>]
type IDTSDesigntimeComponent100 = interface
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
[<System.Runtime.InteropServices.Guid("1C0F2743-58D4-4663-9BC0-06B4D19B51A7")>]
type IDTSDesigntimeComponent100 = interface
Public Interface IDTSDesigntimeComponent100
- 파생
- 특성
예제
다음 코드 예시는 컴포넌트의 설계 시 인스턴스에 접근하는 방법을 보여줍니다.
Package p = new Package();
MainPipe dataFlow = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as MainPipe;
IDTSComponentMetaData100 md = dataFlow.ComponentMetaDataCollection.New();
md.ComponentClassID = "DTSAdapter.OleDbSource";
CManagedComponentWrapper wrp = md.Instantiate();
wrp.ProvideComponentProperties();
Dim p As Package = New Package
Dim dataFlow As MainPipe = CType(CType(p.Executables.Add("DTS.Pipeline"), TaskHost).InnerObject, MainPipe)
Dim md As IDTSComponentMetaData100 = dataFlow.ComponentMetaDataCollection.New
md.ComponentClassID = "DTSAdapter.OleDbSource"
Dim wrp As CManagedComponentWrapper = md.Instantiate
wrp.ProvideComponentProperties
설명
이 인터페이스는 데이터 흐름 구성 요소에서 구현된 두 가지 인터페이스 중 하나입니다; IDTSRuntimeComponent100 다른 하나입니다. 이 인터페이스는 컴포넌트의 설계 시 인터페이스를 정의하며, 컴포넌트 속성과 컬렉션이 수정될 때 호출되는 메서드를 ComponentMetaData 포함합니다. 관리형 컴포넌트 개발자는 이 인터페이스를 명시적으로 구현하지 않고, 대신 두 인터페이스의 메서드를 구현하는 기본 클래스를 PipelineComponent 사용합니다.
데이터 흐름 작업에서 기존 컴포넌트를 프로그래밍적으로 추가하거나 수정할 때, 컴포넌트의 설계 시 인스턴스를 직접 메타데이터에 접근하는 대신 사용해야 합니다. 을 직접 수정하면 ComponentMetaData 해당 컴포넌트가 메타데이터 변경을 검증하고 거부하는 능력을 우회하는 것이 되므로 피해야 합니다. 관리형 코드 개발자는 구성 요소의 설계 시 인스턴스에 접근하여 인터페이스를 CManagedComponentWrapper사용하는 메서드를 사용합니다IDTSDesigntimeComponent100.