CManagedComponentWrapperClass 类

Represents the design-time instance of a data flow component.

继承层次结构

System. . :: . .Object
  Microsoft.SqlServer.Dts.Pipeline.Wrapper..::..CManagedComponentWrapperClass

命名空间:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
程序集:  Microsoft.SqlServer.DTSPipelineWrap(在 Microsoft.SqlServer.DTSPipelineWrap.dll 中)

语法

声明
<GuidAttribute("2E42D45B-F83C-400F-8D77-61DDE6A7DF29")> _
<ClassInterfaceAttribute()> _
Public Class CManagedComponentWrapperClass _
    Implements IDTSDesigntimeComponent100, CManagedComponentWrapper, IDTSRuntimeComponent100
用法
Dim instance As CManagedComponentWrapperClass
[GuidAttribute("2E42D45B-F83C-400F-8D77-61DDE6A7DF29")]
[ClassInterfaceAttribute()]
public class CManagedComponentWrapperClass : IDTSDesigntimeComponent100, 
    CManagedComponentWrapper, IDTSRuntimeComponent100
[GuidAttribute(L"2E42D45B-F83C-400F-8D77-61DDE6A7DF29")]
[ClassInterfaceAttribute()]
public ref class CManagedComponentWrapperClass : IDTSDesigntimeComponent100, 
    CManagedComponentWrapper, IDTSRuntimeComponent100
[<GuidAttribute("2E42D45B-F83C-400F-8D77-61DDE6A7DF29")>]
[<ClassInterfaceAttribute()>]
type CManagedComponentWrapperClass =  
    class
        interface IDTSDesigntimeComponent100
        interface CManagedComponentWrapper
        interface IDTSRuntimeComponent100
    end
public class CManagedComponentWrapperClass implements IDTSDesigntimeComponent100, CManagedComponentWrapper, IDTSRuntimeComponent100

CManagedComponentWrapperClass 类型公开以下成员。

构造函数

  名称 说明
公共方法 CManagedComponentWrapperClass Instantiates an instance of the CManagedComponentWrapperClass object.

页首

属性

  名称 说明
公共属性 BufferManager Sets the IDTSBufferManager100 object of the component.
公共属性 ComponentMetaData Sets the IDTSComponentMetaData100 object for the component
公共属性 EventInfos Sets the IDTSEventInfos100 collection that is associated with the component.
公共属性 LogEntryInfos Gets the IDTSLogEntryInfos100 object to the component.
公共属性 ReferenceTracker Sets the IDTSObjectReferenceTracker100 object that is associated with the component.
公共属性 RequiredProductLevel Gets a value that indicates which edition of SQL Server the data flow component requires.
公共属性 VariableDispenser Sets the IDTSVariableDispenser100 object that is associated with the component.

页首

方法

  名称 说明
公共方法 AcquireConnections Establishes a connection to a connection manager.
公共方法 Cleanup Frees resources and cleans up after the component runs.
公共方法 DeleteExternalMetadataColumn Deletes the external metadata column at the specified index from the collection of external metadata columns.
公共方法 DeleteInput Deletes an IDTSInput100 object from the IDTSInputCollection100 collection.
公共方法 DeleteOutput Deletes an IDTSOutput100 object from the IDTSOutputCollection100 collection of the component.
公共方法 DeleteOutputColumn Deletes an IDTSOutputColumn100 object from the IDTSOutputColumnCollection100 collection of the component.
公共方法 DescribeRedirectedErrorCode Returns the description of an error code defined by the component.
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetEnumerationCollection Returns the IDTSFriendlyEnumCollection100 specified by the
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 InsertExternalMetadataColumnAt Inserts a new external metadata column into the collection of external metadata columns at the specified index.
公共方法 InsertInput Adds an IDTSInput100 object to the IDTSInputCollection100 of the component.
公共方法 InsertOutput Adds a new IDTSOutput100 object to the component.
公共方法 InsertOutputColumnAt Creates a new IDTSOutputColumn100 object and inserts it into the IDTSOutputColumnCollection100 of the component.
公共方法 MapInputColumn Establishes a relationship between an input column and a corresponding external metadata column.
公共方法 MapOutputColumn Establishes a relationship between an IDTSOutputColumn100 column and a corresponding IDTSExternalMetadataColumn100 column.
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 OnDeletingInputColumn Called when an IDTSInputColunn100 object is being deleted from an IDTSInputColumnCollection100 of the component.
公共方法 OnInputPathAttached Called when an IDTSInput100 object of the component is attached to a downstream component.
公共方法 OnInputPathDetached Called when the IDTSInput100 object of the component is disconnected from an upstream component.
公共方法 OnOutputPathAttached Called when an IDTSOutput100 object of the component is attached to a downstream component.
公共方法 PerformUpgrade Upgrades the metadata of the component to the version of the component that is installed on the local computer.
公共方法 PostExecute Does the tasks that have to be done after the component has finished processing rows of data.
公共方法 PreExecute Does the tasks that have to be done after the PrepareForExecute method runs, but before the component begins to process rows of data.
公共方法 PrepareForExecute Does the tasks that have to be done both before the component begins to process rows of data and before the PreExecute method runs.
公共方法 PrimeOutput Adds rows to the output buffers in the data flow.
公共方法 ProcessInput Processes the rows of data that are received in input buffers from upstream components.
公共方法 ProvideComponentProperties Initializes or resets the IDTSComponentMetaData100 of the component.
公共方法 ReinitializeMetaData Called to allow the component to repair problems with the IDTSComponentMetaData100 object that were identified by the component during the Validate method.
公共方法 ReleaseConnections Frees the connections established by the component during AcquireConnections.
公共方法 SetComponentProperty Assigns a value to a IDTSCustomProperty100 of the component.
公共方法 SetExternalMetadataColumnDataTypeProperties Sets the data type properties of the specified external metadata column.
公共方法 SetExternalMetadataColumnProperty Sets an individual property on an external metadata column.
公共方法 SetInputColumnProperty Assigns a value to the IDTSCustomProperty100 of an IDTSInputColumn100 object.
公共方法 SetInputProperty Assigns a value to the IDTSCustomProperty100 of an IDTSInput100 object in the component.
公共方法 SetOutputColumnDataTypeProperties Sets the data type properties of an IDTSOutputColumn100 object.
公共方法 SetOutputColumnProperty Assigns a value to the IDTSCustomProperty100 of an IDTSOutputColumn100 object.
公共方法 SetOutputProperty Call this method to set the IDTSCustomProperty100 of an IDTSOutput100 object of the component.
公共方法 SetUsageType Creates an IDTSInputColumn100 object in the IDTSInputColumnCollection100 of the component and sets the UsageType property of the column.
公共方法 ToString (从 Object 继承。)
公共方法 Validate Verifies that the component is configured correctly and ready to execute.

页首

注释

The CManagedComponentWrapperClass represents the design-time instance of a data flow component and is the object that is used when programmatically modifying a component in a data flow task. The methods of this class are defined by the IDTSDesigntimeComponent100 interface and are used to modify the properties and collections component. The CManagedComponentWrapper interface is returned when the Instantiate method of the IDTSComponentMetaData100 interface of the component is called. This interface can be cast to an instance of the CManagedComponentWrapperClass but there are no advantages to doing this Therefore, typically this class is not used.

示例

The following code example adds a component to a data flow task and retrieves an instance of the CManagedComponentWrapper interface by calling the Instantiate method.

Package p = new Package();
MainPipe mp = ((TaskHost)p.Executables.Add("SSIS.Pipeline.2")).InnerObject as MainPipe;

IDTSComponentMetaData100 md = mp.ComponentMetaDataCollection.New();
md.ComponentClassID = "DTSAdapter.OleDbSource";

CManagedComponentWrapper wrp = md.Instantiate();

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。