PipelineComponent 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
관리되는 데이터 흐름 구성 요소를 개발할 때 사용되는 기본 클래스를 정의합니다.
public ref class PipelineComponent
public class PipelineComponent
type PipelineComponent = class
Public Class PipelineComponent
- 상속
-
PipelineComponent
- 파생
예제
다음 코드 예시는 DtsPipelineComponentAttribute 와 를 구현하는 컴포넌트를 보여줍니다.PipelineComponent
using System;
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
namespace Microsoft.Samples.SqlServer.Dts
{
[DtsPipelineComponent(DisplayName="SampleComponent")]
public class SampleComponent : PipelineComponent
{
public override ProvideComponentProperties()
{
// TODO: Implement component intialization.
}
public override DTSValidationStatus Validate()
{
// TODO: Implement component validation.
}
public override void ProcessInput( int inputID, PipelineBuffer buffer)
{
// TODO: For transformation and destination components,
// implement code to process incoming rows.
}
}
}
Imports System
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper
Namespace Microsoft.Samples.SqlServer.Dts
<DtsPipelineComponent(DisplayName="SampleComponent")> _
Public Class SampleComponent
Inherits PipelineComponent
Public Overrides Sub ProvideComponentProperties()
' TODO: Implement component intialization.
End Sub
Public Overrides Function Validate() As DTSValidationStatus
' TODO: Implement component validation.
End Function
Public Overrides Sub ProcessInput(ByVal inputID As Integer, ByVal buffer As PipelineBuffer)
' TODO: For transformation and destination components,
' implement code to process incoming rows.
End Sub
End Class
End Namespace
설명
이 클래스에서 상속받아 자신만의 데이터 흐름 구성 요소를 만드세요. 이 클래스는 필요한 컴포넌트 IDTSDesigntimeComponent100IDTSRuntimeComponent100인터페이스와 를 구현합니다. 이 메서드들의 기본 클래스 구현을 오버라이드하여 컴포넌트의 기능을 제공합니다. PipelineComponent 구성 요소 인터페이스 방법뿐만 아니라 보조 방법도 제공하여 구성 요소 개발에 도움을 줍니다.
생성자
| Name | Description |
|---|---|
| PipelineComponent() |
PipelineComponent 클래스의 새 인스턴스를 초기화합니다. |
필드
| Name | Description |
|---|---|
| s_STOCKPROPNAME_COMPFLAGS |
데이터 흐름 구성 요소의 ComparisonFlags 속성 이름을 포함하고 있습니다. |
| s_STOCKPROPNAME_DELOUTPUTONPATHDETACHED |
데이터 흐름 구성 요소의 DeleteOutputOnPathDetached 속성 이름을 포함하고 있습니다. |
| s_STOCKPROPNAME_EXCLGROUP |
데이터 흐름 구성 요소의 ExclusionGroup 속성 이름을 포함하고 있습니다. |
| s_STOCKPROPNAME_HASSIDEEFFECTS |
데이터 흐름 구성 요소의 HasSideEffects 속성 이름을 포함하고 있습니다. |
| s_STOCKPROPNAME_ISDISTRIBUTABLE |
데이터 흐름 구성 요소의 IsDistributable 속성 이름을 포함하고 있습니다. |
| s_STOCKPROPNAME_ISERROROUT |
데이터 흐름 구성 요소의 IsErrorOut 속성 이름을 포함하고 있습니다. |
| s_STOCKPROPNAME_ISSORTED |
데이터 흐름 구성 요소의 IsSorted 속성 이름을 포함하고 있습니다. |
| s_STOCKPROPNAME_REFMETADATAID |
데이터 흐름 구성 요소의 ReferenceMetaDataID 속성 이름을 포함하고 있습니다. |
| s_STOCKPROPNAME_SORTKEYPOS |
데이터 흐름 구성 요소의 SortKeyPosition 속성 이름을 포함하고 있습니다. |
| s_STOCKPROPNAME_SYNCINPUTID |
데이터 흐름 구성 요소의 SynchronousInputID 속성 이름을 포함하고 있습니다. |
속성
| Name | Description |
|---|---|
| BufferManager |
파이프라인 구성 요소를 얻 IDTSBufferManager100 습니다. |
| ComponentMetaData |
컴포넌트에 대해 얻 IDTSComponentMetaData100 습니다. |
| ErrorSupport |
통합 서비스 컴포넌트가 네이티브 코드로 작성한 HRESULT를 기반으로 오류, 경고 또는 기타 정보 이벤트를 생성할 수 있는 객체를 ErrorSupport 반환합니다. |
| EventInfos |
객체 수집 PipelineComponent 을 IDTSEventInfos100 받아. |
| LogEntryInfos |
컴포넌트가 등록한 로그 이벤트 모음을 IDTSLogEntryInfos100 받습니다. |
| ReferenceTracker |
부품과 연관된 것을 IDTSObjectReferenceTracker100 얻습니다. |
| VariableDispenser |
데이터 흐름 구성 요소의 를 IDTSVariableDispenser100 얻습니다. |