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 |
ネイティブコードで書かれたIntegration Servicesコンポーネントから返されるHRESULTに基づいて、コンポーネントがエラーや警告、その他の情報イベントを報告できる ErrorSupport オブジェクトを返します。 |
| EventInfos |
PipelineComponentオブジェクトのIDTSEventInfos100コレクションを取得します。 |
| LogEntryInfos |
コンポーネントが登録したログイベントの IDTSLogEntryInfos100 コレクションを取得します。 |
| ReferenceTracker |
コンポーネントに関連付けられた IDTSObjectReferenceTracker100 を取得します。 |
| VariableDispenser |
データフローの要素の IDTSVariableDispenser100 を取得します。 |