次の方法で共有


PipelineComponent Class

マネージ データ フロー コンポーネントを開発する際に使用する基本クラスを定義します。

名前空間: Microsoft.SqlServer.Dts.Pipeline
アセンブリ: Microsoft.SqlServer.PipelineHost (microsoft.sqlserver.pipelinehost.dll 内)

構文

'宣言
Public Class PipelineComponent
public class PipelineComponent
public ref class PipelineComponent
public class PipelineComponent
public class PipelineComponent

解説

このクラスから継承し、独自のデータ フロー コンポーネントを作成します。このクラスは、必要なコンポーネント インターフェイスである IDTSDesigntimeComponent90 および IDTSRuntimeComponent90 を実装します。独自のコンポーネント機能を提供するには、これらのメソッドの基本クラス実装をオーバーライドしてください。PipelineComponent には、コンポーネント インターフェイスのメソッドに加えてヘルパ メソッドが用意されており、独自のコンポーネントの開発に役立ちます。

継承階層

System.Object
  Microsoft.SqlServer.Dts.Pipeline.PipelineComponent
     Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost

使用例

次のコード例は、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

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

PipelineComponent Members
Microsoft.SqlServer.Dts.Pipeline Namespace