次の方法で共有


IDTSComponentMetaData90.ComponentClassID Property

コンポーネント メタデータによって記述されるコンポーネントの CLSID を取得します。値の設定も可能です。

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

構文

'宣言
<DispIdAttribute(101)> _
Property ComponentClassID As String
[DispIdAttribute(101)] 
string ComponentClassID { get; set; }
[DispIdAttribute(101)] 
property String^ ComponentClassID {
    String^ get ();
    void set ([InAttribute] String^ bstrComponentClassID);
}
/** @property */
/** @attribute DispIdAttribute(101) */ 
String get_ComponentClassID ()

/** @property */
/** @attribute DispIdAttribute(101) */ 
void set_ComponentClassID (/** @attribute InAttribute() */ String bstrComponentClassID)
DispIdAttribute(101) 
function get ComponentClassID () : String

DispIdAttribute(101) 
function set ComponentClassID (bstrComponentClassID : String)

プロパティ値

IDTSComponentMetaData90 によって表されるコンポーネントの CLSID または PROGID です。

解説

このプロパティは、Instantiate メソッドが呼び出されたときに作成されるコンポーネントの種類を示します。

使用例

次のコード サンプルでは、プログラムでデータ フロー タスクにコンポーネントを追加する場合の、このプロパティの使用方法を示しています。この例では、Lookup コンポーネントが追加されます。

IDTSComponentMetaData90 component = dataflowTask.ComponentMetaDataCollection.New();
component.ComponentClassID = "DTSTransform.Lookup";
component.Instantiate();
Dim component As IDTSComponentMetaData90 = dataflowTask.ComponentMetaDataCollection.New 
component.ComponentClassID = "DTSTransform.Lookup" 
component.Instantiate

スレッド セーフ

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

プラットフォーム

開発プラットフォーム

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

対象プラットフォーム

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

参照

関連項目

IDTSComponentMetaData90 Interface
IDTSComponentMetaData90 Members
Microsoft.SqlServer.Dts.Pipeline.Wrapper Namespace