CManagedComponentWrapper 인터페이스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
public interface class CManagedComponentWrapper : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2014::IDTSDesigntimeComponent100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.CManagedComponentWrapperClass))]
[System.Runtime.InteropServices.Guid("0058874E-E037-4BA9-920C-349773B5351A")]
public interface CManagedComponentWrapper : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.IDTSDesigntimeComponent100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.CManagedComponentWrapperClass))>]
[<System.Runtime.InteropServices.Guid("0058874E-E037-4BA9-920C-349773B5351A")>]
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();
}
}
}
}
See Also
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace
Return
설명
CManagedComponentWrapper는 데이터 흐름 구성 요소의 디자인 타임 수정에 사용되는 IDTSDesigntimeComponent100의 인터페이스를 나타냅니다. CManagedComponentWrapper는 디자인 타임 동안 데이터 흐름 구성 요소의 속성 및 열 컬렉션을 구성하는 데 사용됩니다. 구성 요소의 메타데이터를 직접 수정할 수 있지만, 이렇게 하면 해당 메타데이터에 대한 수정의 유효성을 검사하는 구성 요소의 기능을 무시하므로 이를 피해야 합니다. CManagedComponentWrapper 인스턴스는 구성 요소 IDTSComponentMetaData100 인터페이스의 Instantiate 메서드를 호출하여 만듭니다.
인터페이스에서 정의한 메서드와 속성은 CManagedComponentWrapperClass 및 IDTSDesigntimeComponent100 형식 모두에 표시됩니다.