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
注解
继承这个类,创建你自己的数据流组件。 该类实现所需的组件接口, IDTSDesigntimeComponent100 且 IDTSRuntimeComponent100。 你覆盖这些方法的基类实现,以提供组件的功能。 PipelineComponent 除了组件接口的方法外,还提供辅助方法,帮助你开发组件。
构造函数
| 名称 | 说明 |
|---|---|
| PipelineComponent() |
初始化 PipelineComponent 类的新实例。 |
字段
| 名称 | 说明 |
|---|---|
| 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 属性名称。 |
属性
| 名称 | 说明 |
|---|---|
| BufferManager |
获取 IDTSBufferManager100 管道组件的 |
| ComponentMetaData |
为某个组件获得 。IDTSComponentMetaData100 |
| ErrorSupport |
返回一个 ErrorSupport 对象,允许组件根据集成服务组件用本地代码编写的 HRESULTS 提出错误、警告或其他信息事件。 |
| EventInfos |
获取 IDTSEventInfos100 该物品的集合 PipelineComponent 。 |
| LogEntryInfos |
获取 IDTSLogEntryInfos100 组件已注册的日志事件集合。 |
| ReferenceTracker |
获取与组件相关的内容 IDTSObjectReferenceTracker100 。 |
| VariableDispenser |
获取 IDTSVariableDispenser100 数据流部分的部分。 |